Hi, all. I have a web application running inside JBOSS Portal (portal version 2.4, app.
server version is 4.0.5) inside a portlet. In the web application, I use try/catch to trap
the exceptions, and I would like to redirect the page to an error page if those exceptions
are caught.
In the myApp.war/WEB-INF/web.xml, I have:
<error-code>500</error-code>
/WEB-INF/jsp/error.jsp
</error-page>
<error-page>
<exception-type>java.lang.Exception</exception-type>
/WEB-INF/jsp/error.jsp
</error-page>
<error-page>
<exception-type>javax.faces.FacesException</exception-type>
/WEB-INF/jsp/error.jsp
</error-page>
<error-page>
<exception-type>javax.faces.el.EvaluationException</exception-type>
/WEB-INF/jsp/error.jsp
</error-page>
On the error page, I have :
<%@ page isErrorPage="true" %>
<%@ taglib
uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib
uri="http://java.sun.com/jsf/core" prefix="f" %>
this is error page
However, it doesn't seem that the configuration is being picked up. Am I missing
something?
Note that I only want the error redirection for this web application to go to the
error.jsp page only, so I don't want to put this configuration in the web.xml in the
tomcat55 folder.
Any help is appreciated. Thanks.
-Andrew
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4222063#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...