As you saw, the string parameter on ErrorResolution is just passed 
straight through to HttpServletResponse.sendError() which simply adds it 
to the status line of the HTTP response IIRC.

Sounds like what you're looking for is something more like 
getContext().getRequest().setAttribute("errorMessage", "foo").

Then you can use ${errorMessage} in your error page.

Aaron

esemba wrote:
> Hi all,
> how can i get to error message from jsp? If i return new
> ErrorResolution(500, "foo") in my ActionBean, error page is selected (based
> on web.xml configuration). In this jsp, i can get to the status code
> (${pageContext.errorData.statusCode}), but I can't find a way, how to get to
> string "foo". I know this question might be better to ask in some
> jsp/servlet forum, because ErrorResolution's execute simply calls
> response.sendError(int, String), but I hope somebody here will know how to
> do it. Thank you very much for the answer.
>   


------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensign option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to