DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12871>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12871

ExceptionHandler does not obey controller inputForward rule





------- Additional Comments From [EMAIL PROTECTED]  2002-09-20 19:07 
-------
Actually, I fixed it with a custom ExceptionHandler subclass by simply changing 
the code to this:

        if (ae.getPath() != null) {
            forward = new ActionForward(ae.getPath());
        } else {
            forward = mapping.getInputForward();
        }

(I got rid of the local 'path' variable)

I would also suggest that the exception message be passed to ActionError 
created in this manner:

            error = new ActionError(ae.getKey(), ex.getMessage());

This allows a {0} to display the error message to the user if desired.

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to