• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java.lang.illegalstate exception

 
ayyappan Bas
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

This is code you mentioned where i am getting java.lang.illegalstate exception only if the query condition return false and the response is redirected.
 
Vijay Jeyam
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Make a break and then redirect to the page. You cannot redirect when the response is commited
 
ayyappan Bas
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Vijay Jeyam wrote:Make a break and then redirect to the page. You cannot redirect when the response is commited


its worked fine.thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic