Peter Ondruska wrote:

On Struts 1.1 with Jetty 4.2.9 "*.do" is mapped to struts action servlet. Everything works fine except if requesting unknown action e.g. /thisActionDoesNotExistInStrutsConfig.do instead of web.xml defined error-page with code 404 I get container supplied code 404 general error page (as if no error page was defined in web.xml). Is this designed functionality in Struts or is it container (Jetty) bug?


What Struts does in this scenario (assuming you don't have default="true" on any of your <action> elements) is to send an SC_BAD_REQUEST (equal to 400, not 404) error back to the container -- so if you want to customize the container's default error page you should be matching on status code 400.

Craig



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to