Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Tomcat Users »

Re: How is catch{} code handled

Merrill Cornish

2004-01-02

Replies:

George,

>Unfortunately, your logic is flawed.
>
>
Yes, that's very clear at this point. :-)

I understand that the sendRedirect() does NOT terminate the execution
flow that it is in. That's why I follow each one with a return.
However, I think I now recognize my problem.

In my mind, I've always associated a catch{} with an exception and
nothing "escapes" from the exception. And that's true, assuming you did
NOT do what I did and disolve the exception into a simple message that
displayed as text on a JSP page. As I now see, in THAT case, the
catch{} DOES return, thereby allowing multiple sendRedirect()s to occurs.

Thank you for setting my thinking straight.

Merrill

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)



©2008 junlu.com - Jax Systems, LLC, U.S.A.