wood burning stoves 2.0*
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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Thrown error but still redirected" Watch "Thrown error but still redirected" New topic

Thrown error but still redirected

EJ Dinglasan
Ranch Hand

Joined: Jun 08, 2003
Posts: 47
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.
Weerawit Maneepongsawat
Ranch Hand

Joined: Apr 11, 2002
Posts: 203
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
I agree. Here's the link: http://aspose.com/file-tools
subject: Thrown error but still redirected
Similar Threads
Page is still executed even after response.sendRedirect()
javascript:void() ??
Help me with a Simple HelloWorld.jsp
URGENT:Error when using "forward" method of RequestDispatcher
Problem in error-page tag