Hi,
I have created a app. in JavaWebServer2.0 which uses servlets 'included'
in JSPs. Now when I try to port this to Tomcat 3.1, the servlets give an
error when invoked from within the JSP, but work fine directly.
The servlet uses code like this:
public void service(HttpServletRequest req, HttpServletResponse res)
throws IOException
{
PrintStream out ;
ServletOutputStream oSOS;
oSOS = res.getOutputStream();
out = new PrintStream(oSOS);
//snip snip
}
Now this works fine is I call this from the URL bar directly, but gives '
java.lang.IllegalStateException: Writer is already being used for this
request' when I include this from a JSP.
e.g.
<jsp:include page="/servlet/ViewDiscBoardServlet" flush="true" />
This code works fine in JavaWebServer2.0.
How do I get around this???
Pls. help.Thanks in advance.
Bala
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets