Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
amitji jain
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64700
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you look in the Servlets FAQ?
 
Vijitha Kumara
Bartender
Posts: 3913
9
Chrome Fedora Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And Welcome to CodeRanch, Amitji Jain
 
Javin Paul
Ranch Hand
Posts: 295
Eclipse IDE Firefox Browser Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


forward() should be called before response has been committed to the client ,if hte response has already been committed then this method throws IllegalStateException.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic