dynamic 404.jsp using struts
- by Kapsh
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>