Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Servlets and the fly likes java.lang.illegalstate exception Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "java.lang.illegalstate exception " Watch "java.lang.illegalstate exception " New topic
Author

java.lang.illegalstate exception

ayyappan Bas
Ranch Hand

Joined: Oct 11, 2008
Posts: 39

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.


Thanks & Regards
Ayyappan
Vijay Jeyam
Greenhorn

Joined: Nov 12, 2008
Posts: 15
Make a break and then redirect to the page. You cannot redirect when the response is commited


Never Never Never Give Up...!!!
ayyappan Bas
Ranch Hand

Joined: Oct 11, 2008
Posts: 39
Vijay Jeyam wrote:Make a break and then redirect to the page. You cannot redirect when the response is commited


its worked fine.thanks
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: java.lang.illegalstate exception
 
Similar Threads
java.sql.SQLException: Closed Statement: next
How to set value in jtable fields??
MultiDimenaional Array sort
how to avoid the java.lang.IllegalStateException
Date Comparison in Java