Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Thrown error but still redirected

 
EJ Dinglasan
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
I intentionally caused an IllegalStateException with this code

The error was thrown and caught but the page was still redirected.
So is my assumption correct that even if sendRedirect() will throw an IllegalStateException it will still be redirected.
Thanks
 
Weerawit Maneepongsawat
Ranch Hand
Posts: 203
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
http://www.coderanch.com/t/165903/java-Web-Component-SCWCD/certification/sendRedirect-help-me
try this.
 
EJ Dinglasan
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic