If you're using Struts 2, have you tried adding

<dispatcher>ERROR</dispatcher>

to the filter mapping?

Nils-H

On Tue, Jan 27, 2009 at 10:14 PM, Tom Pop <tom....@email.cz> wrote:
> Hello,
>
> I want to redirect 404 error page to struts action:
>
> This action works:
> http://localhost/resolver.action
>
> This web.xml configuration doesn't work:
> <error-page>
>        <error-code>404</error-code>
>        <location>/resolver.action</location>
> </error-page>
>
> Redirect to JSP page works:
> <error-page>
>        <error-code>404</error-code>
>        <location>/error.jsp</location>
> </error-page>
>
> However, it works in struts1, doesn't in struts2... I can redirect error page 
> to jsp, but not to action.
> Any suggestions?
>
> Tom
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to