I am trying to send a table in html code to a jsp using
response.setContentType("text/html");
PrintWriter out = response.getWriter();
out.println("<html>").....
then using response.sendRedirect(jsp name) to send the table to the jsp;
But this is never worked with me and I have a doubt that the printwriter has a specific manipulation with servlet jsp communication.
Update: So to be more clear
In one JSP I have various parameter wich I send all of them to a servlet.
This one; the servlet build a table with all those parameter that catched with request.getParameter.
when The html table is built with out.println like that:
response.setContentType("text/html");
PrintWriter out = response.getWriter();
out.println("<html>");
out.println("<head>");
out.println("<title>Imput OPC</title>");
out.println("</head>");
out.println("<body>");
out.println("<table border=1>");
.
.
.
out.println("</body>");
out.println("</html>");
so I'd like to send this result:the html table to display into an other jsp