Not a jsp/maven/java dev myself, i'm trying to configure error pages in a generic way, for a webapp, without touching jboss's configuration.
Here's how i'm trying to do so: in my web.xml, i've set up
<error-page>
<error-code>*</error-code>
<location>/actions/erreur</location>
</error-page>
Here, I doubt using '*' works, but that's for the example. Then, in my strut-config.xml
<action path="/erreur" forward="erreurView" />
And finally in my tiles-def.xml:
<!-- ERREURS -->
<definition name="erreurView" extends=".formPremiereConnexionLayout">
<put name="titrePage" value="Erreur"/>
<put name="body" value="/jsp/erreurs.jsp"/>
</definition>
You get the idea, if you have an appropriate answer, thanks for the help.
One last thing : even though any server error code send to a generic error view, i'd like to detail the error in the jsp. I think a scriptlet would do fine, buyt once again, I have no idea on how to do so. Thanks.