想要包含一个servlet得用下列的方法,it is alleged that include file="servlet1" can not work。(视频下载) (全部书籍)
例 4.4.2
<html>
<body>
<jsp:include page="/Cookie/DeleteCookie" flush="true" />
</body>
</html>
package com;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
public class DeleteCookie extends HttpServlet {
protected void doGet(HttpServletRequest request,
HttpServletResponse response) throws ServletException, IOException {
原文地址:https://www.cnblogs.com/mark-to-win/p/10554325.html
时间: 2024-10-13 16:02:57