This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Thrown error but still redirected Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Thrown error but still redirected" Watch "Thrown error but still redirected" New topic
Author

Thrown error but still redirected

EJ Dinglasan
Ranch Hand

Joined: Jun 08, 2003
Posts: 47
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

Joined: Apr 11, 2002
Posts: 203
http://www.coderanch.com/t/165903/java-Web-Component-SCWCD/certification/sendRedirect-help-me
try this.


Weerawit<br />SCJP 1.4, SCWCD 1.2, SCWCD 1.4, SCBCD 1.3, SCBCD 5.0, SCMAD 1.0, SCJA 1.0, SCDJWS, SCJD, SCEA, SCDJWS 1.5
EJ Dinglasan
Ranch Hand

Joined: Jun 08, 2003
Posts: 47
thanks
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Thrown error but still redirected