【发布时间】:2014-05-15 19:13:31
【问题描述】:
我正在努力提高我的页面效率,所以我得到了如下问题:
是否可以将带有 RequestDispatcher 的新 Jsp 页面从 Servlet 转发到 HTML div 中?
像这样:
someServlet.java
public void doGet(HttpServletRequest req, HttpServletResponse resp)
throws IOException, ServletException {
// do something to send a page to the HTML div in page.jsp
}
page.jsp
<div> <!-- the forwarded page must inside here --> </div>
【问题讨论】:
-
@Mike 如果你正在构建一个体面的 Web 应用程序,那不是你想要的。
标签: java jquery html jsp servlets