内容我有这个servlet:包括一个jsp的一个servlet
public class SaveImage extends HttpServlet {
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
PrintWriter out = null;
try {
out = response.getWriter();
out.println("<html>");
...
// I want to include here the content of this jsp:
// /WEB-INF/mybox.jsp
// (also, with the full context of the servlet)
...
out.println("</html>");
out.close();
} catch (IOException e) {
e.printStackTrace();
}
}
}
有没有做这件事(响应已承诺?)有问题,我该怎么办呢?
很好谢谢。 – BenoitParis 2011-02-13 16:48:00