当前页面: 开发资料首页 → JSP 专题 → 求助:Servlet中怎么使用包含???
求助:Servlet中怎么使用包含???
摘要: 求助:Servlet中怎么使用包含???
在Servlet中怎么使用静态<%@include file="```"%>和动态包含
指令???
应该有,你用this.试试看有什么相关的方法
String url = "a.jsp"
RequestDispatcher d = request.getRequestDispatcher(url);
d.include(request, response);
Tomcat:
org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response, "test.jsp", out, false);
强,那么怎么样在jsp页面中,嵌套Servlet
我直接用include是不行的