dynamic 404.jsp using struts
Posted
by Kapsh
on Stack Overflow
See other posts from Stack Overflow
or by Kapsh
Published on 2009-10-03T23:28:02Z
Indexed on
2010/06/16
17:02 UTC
Read the original article
Hit count: 243
I would like to display an intelligent 404 page with some application data. Currently, there is a 'dumb' jsp, so I just forward to the view and I am done with it.
But now I guess I really need to forward to an action so that I can set some more data to display on the error.jsp.
How do I do it through configuration via struts-config? I need congifuration because I do not want to touch any individual files that might be forwarding to the existing view.
I tried doing the fol, but I get an error and I dont see anything in the log.
So currently,
<forward name="ErrorView" path="/Error404.jsp" type="org.apache.struts.action.ActionForward">
</forward>
What I want:
<forward name="ErrorView" path="/errorAction.do" type="org.apache.struts.action.ActionForward">
</forward>
© Stack Overflow or respective owner