java.lang.IllegalStateException: "getOutputStream()" has already been called for this response

Jean-Baptiste No?l <[email protected]>
Newsgroups gmane.comp.java.sun.servlet
Message-ID <[email protected]>
Hi,
I have this error above when i load the same servlet in my webapp.
My Code looks like following :
my servletA is :
response.setContentType("text/html; charset=ISO-8859-1");
PrintWriter out = response.getWriter();
out.println("test");
out.println(....a form who submit to servletControl....);

my servletControl is :
if(ok)//call servletA
RequestDispatcher rd2 = request.getRequestDispatcher("servletA");
rd2.include(request, response);


In first i call servletA.
The result is test and a form to submit to servletControl
In second i submit the form.
The result is
java.lang.IllegalStateException: "getOutputStream()" has already been
called for this response

Thanks you for your help

___________________________________________________________________________
To unsubscribe, send email to [email protected] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.