|
|
Use getOutputStream instead |
| The SSI internals call getOutputStream() so you are not allowed to call getWriter() (only one of the two get functions may be called). A workaround is to do the following: public void doGet(HttpServletRequest req, HttpServletResponse res)
throws ServletException, IOException
{
PrintWriter out = new PrintWriter(res.getOutputStream());
[...]
// don't close the PrintWriter or you will lose the rest of your page.
out.flush();
}
ericATactualsoftwareDOTcom | |
| [Append to This Answer] |
| Next: |
|
| ||||||||||