[ http://mc4j.org/jira/browse/STS-380?page=all ]
John Newman updated STS-380:
----------------------------
Attachment: action-resolver.patch
here is a patch, seems to work well.
in my exception handler I have this:
public void handle(Throwable t, HttpServletRequest request,
HttpServletResponse response) throws ServletException,
IOException {
if ("localhost".equals(request.getServerName())) {
throw new StripesServletException(t);
}
if (t instanceof ActionBeanNotFoundException) {
response.sendError(404);
return;
}
LOG.error(t.getMessage(), t);
emailDev(t);
request.getRequestDispatcher(getErrorPage()).forward(request,
response);
}
now i just need to make a semi nice 404 page instead of that crap one that
tomcat comes with
> Better handling of unmapped URLs
> --------------------------------
>
> Key: STS-380
> URL: http://mc4j.org/jira/browse/STS-380
> Project: Stripes
> Issue Type: Improvement
> Components: ActionBean Dispatching
> Affects Versions: Release 1.4.3
> Reporter: Ben Gunter
> Assigned To: Ben Gunter
> Priority: Minor
> Fix For: Release 1.5
>
> Attachments: action-resolver.patch
>
>
> AnnotatedClassActionResolver currently throws a StripesServletException when
> a URL cannot be mapped to an ActionBean. We should provide a subclass of
> StripesServletException (e.g. ActionBeanNotFoundException or
> UrlNotBoundException) that can be more easily handled by an ExceptionHandler.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://mc4j.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development