This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
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


Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
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: 40

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: 40
Vijay Jeyam wrote:Make a break and then redirect to the page. You cannot redirect when the response is commited


its worked fine.thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: java.lang.illegalstate exception
 
It's not a secret anymore!