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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to