內容我有這個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