Cómo interceptar excepciones y saltar a la página de error en struts2
Simplemente configúrelo en web.xml
lt;error-pagegt;
lt;error-codegt;404lt;/error-codegt;
lt;locationgt ;/error404.jsplt;/locationgt;
lt;/error-pagegt;
lt;error-pagegt;
lt;exception-typegt;java .lang.gt;
lt;locationgt;/exception.jsplt;/locationgt;
lt;/error-pagegt;
lt; error-pagegt; ;
lt;error-pagegt;
lt;error-pagegt;
lt;error-pagegt