On Thu, 2007-12-27 at 21:58 +0100, Wolf Benz wrote:
> 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']}

Hmm..if the code
  requestMap.get("javax.servlet.error.message")
works, then I would have really expected
  #{request['javax.servlet.error.message']}
to work too.

Is it really the case that the first works, but the second does not?

If the first doesn't work, then that is just a Facelets issue that you
need to follow up on the facelets list..

Regards,

Simon

Reply via email to