You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Sng Wee Jim <We...@capco.com> on 2004/06/05 20:17:00 UTC

error-page problem

Hi,
I am using tomcat 5.0.25

I am porting some legacy webapp to struts JSP. Basically I am forwarding 
my request based on the last token of the request URI, eg.
    request URI:  /testapp/demo
then I will forward to demo.do

To do that I am setting the following in my web.xml
 <error-page>
      <error-code>404</error-code>
      <location>/MyForwarderServlet</location>
 </error-page>

MyForwarderServlet will forward to eg. demo.do in its doPost method. 
 From the tomcat console, I can see that demo.do is hit, but the 
response is somehow not returned to the browser.
Any idea what went wrong?
Would overriding Tomcat's DefaultServlet be a better solution?


- Jim


************************************************************************
The information in this email is confidential and is intended solely
for the addressee(s).
Access to this email by anyone else is unauthorized. If you are not
an intended recipient, please notify the sender of this email 
immediately. You should not copy, use or disseminate the 
information contained in the email.
Any views expressed in this message are those of the individual
sender, except where the sender specifically states them to be
the views of Capco.

http://www.capco.com/

************************************************************************

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