This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread 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 Android Security Essentials Live Lessons this week in the Android 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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Thrown error but still redirected
 
Similar Threads
Problem in error-page tag
Help me with a Simple HelloWorld.jsp
Page is still executed even after response.sendRedirect()
javascript:void() ??
URGENT:Error when using "forward" method of RequestDispatcher