wood burning stoves 2.0*
The moose likes Servlets and the fly likes Dispaching a request from Servlet to JSP ERROR (its urgent please help me) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Dispaching a request from Servlet to JSP ERROR (its urgent please help me)" Watch "Dispaching a request from Servlet to JSP ERROR (its urgent please help me)" New topic
Author

Dispaching a request from Servlet to JSP ERROR (its urgent please help me)

amitji jain
Greenhorn

Joined: Jan 06, 2011
Posts: 1
Hi all,

i am making basic web application using "jsp servlet" without using session n all . following error is coming when i m dispatching request.

java.lang.IllegalStateException: Cannot forward after response has been committed
com.test.servlets.login.doPost(login.java:103)
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


please help me.
thanks
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60752
    
  65

Did you look in the Servlets FAQ?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Vijitha Kumara
Bartender

Joined: Mar 24, 2008
Posts: 3816

And Welcome to CodeRanch, Amitji Jain


SCJP 5 | SCWCD 5
[How to ask questions] [Twitter]
Javin Paul
Ranch Hand

Joined: Oct 15, 2010
Posts: 281



forward() should be called before response has been committed to the client ,if hte response has already been committed then this method throws IllegalStateException.


http://javarevisited.blogspot.com - java classpath - Java67 - java hashmap - java logging tips java interview questions Java Enum Tutorial
 
Consider Paul's rocket mass heater.
 
subject: Dispaching a request from Servlet to JSP ERROR (its urgent please help me)
 
Similar Threads
HTTP Status 500 - error running servlet with JSP
Generated servlet error:
Generated servlet error:
HTTP status 500 - Unknown source
getting an internal error () that prevented it from fulfilling this request