• Post Reply Bookmark Topic Watch Topic
  • New Topic

IllegalStateException in Servlet

 
K Aditi
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have a following piece of code,


When I comment the code works fine otherwise it gives java.lang.IllegalStateException
org.apache.coyote.tomcat5.CoyoteResponseFacade.sendRedirect(CoyoteResponseFacade.java:399)
in doPost method of the servlet. I cant figure out the reason for the exception.
[ April 21, 2008: Message edited by: K Aditi ]
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you need an "else if", you can't redirect to both, it's one or the other.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!