You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Tridev Kodamasingh <Tr...@cramer.com> on 2004/09/07 14:53:03 UTC

404 and 505 error code : non-existing ActionMapping

Hi,

In my application, I am trying to set the error page for 404  and 500.
For this, I am configuring my web.xml as follows 

<web-app>
	...........................
	..........................
	 <error-page>
		<error-code>404</error-code> 
		<location>/WEB-INF/homepages/error/error.jsp</location> 
	 </error-page>
	 <error-page>
	    <error-code>500</error-code> 
	    <location>/WEB-INF/homepages/error/error.jsp</location> 
	  </error-page>
</web-app>


This works fine , when I set a  non-existing filename (to test for 404 error
code ) for an ActionMapping  in the struts-config.xml.
But,
            Whenever I direct the flow to non-existing ActionMapping,  this
does not work. 
	The page comes up with 404  error code as follows.

		HTTP Status 404 - /MyApplication/history.do
		type Status report
		message /MyApplication/history.do
		description The requested resource
(/MyApplication/history.do) is not available.

		Apache Tomcat/5.0.24
 Can somebody give me some idea  whether is behavious is correct or there is
some other way of  handling non-existing ActionMappings ??
Many Thanks 
Tridev



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org