At 1:41 PM -0400 6/3/05, Leandro_Dorileo/[EMAIL PROTECTED] wrote:
I'm working in a project where I'm planning to use my own implementation
of ExceptionHander, I know that I need extend the
org.apache.struts.action.ExceptionHandler and overwrite the execute
method, I also know that I need use the <html:errors /> taglib and
configure my action to work with my own ExceptionHandler class.

Everything is working properly till the ExceptionHandler but nothing is
done in the JSP, the taglib doesn't do anything as waited. What perhaps
I'm doing wrong, when I debug my application I go up to the
ExceptionHalder but in the jsp nothing happens.

This isn't much to go on. One common error which might be related to what you're seeing is when the ExceptionHandler is invoked during Tiles evaluation; in this case, the response is usually already committed, so the ExceptionHandler can't forward to the configured JSP.

If you aren't using Tiles, then you probably have a different kind of misconfiguration. I'd suggest posting some of your config info to this list to see if anyone can help you.

I have been using a local ExceptionHandler which tests to see if the response is committed and uses "include" instead of "forward" when it is; this works pretty well if your error page would look OK inlined in a subregion of a page as well as in the main page body. I'm hoping to refine this a little and introduce some kind of support for it in Struts 1.3

joe

--
Joe Germuska [EMAIL PROTECTED] http://blog.germuska.com "Narrow minds are weapons made for mass destruction" -The Ex

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

Reply via email to