tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sng Wee Jim <Wee.Jim....@capco.com>
Subject error-page problem
Date Sat, 05 Jun 2004 18:17:00 GMT

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


Mime
View raw message