Hi all,
I know that, within a JSP page, you have access to information about
the exception that occurred under several request attribute keys:
javax.servlet.error.exception -- the actual exception itself
javax.servlet.error.status_code -- the HTTP status code (as a
java.lang.Integer)
javax.servlet.error.exception_type -- the Class of the exception
that was thrown
javax.servlet.error.message -- the message string from the
exception that was thrown
javax.servlet.error.request_uri -- the request URI of the
incoming request
javax.servlet.error.servlet_name -- the name of the servlet
processing the request
But if you use JSF & facelets, other than using code in a bean doing
stuff like:
requestMap.get("javax.servlet.error.message");
, is there a way to access them in the pag itself using the unified EL?
What I've already tried, is:
- I tried in y JSF page: #{request.javax.servlet.error.message}, but
got this error:
/resources/pages/fileNotFound.xhtml: Property 'javax' not found on
type org.apache.catalina.core.ApplicationHttpRequest
- I cut out the javax... to no avail.
- I've then tried: #{request['javax.servlet.error.message']}
All failed.
Ideas?
--Wolf