Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP 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