tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Cook" <jimc...@iname.com>
Subject RE: Problem: Calling Servlet From Servlet
Date Wed, 20 Sep 2000 21:17:10 GMT
1. What is the URL you are using to launch first servlet?

2. If you access the ABC servlet, using a URL local to the first servlet's
address, does the ABC servlet load? I'm talking about typing the URL for the
ABC servlet directly in the browser.

jim

> -----Original Message-----
> From: ann patil [mailto:patilann@hotmail.com]
> Sent: Wednesday, September 20, 2000 1:43 PM
> To: tomcat-dev@jakarta.apache.org
> Subject: Problem: Calling Servlet From Servlet
>
>
> Can anybody please help me!!!
>
> I have written a servlet which after checking certain condition needs
> to call/invoke another servlet.I have used :
>
> RequestDispatcher rd = getServletContext().getRequestDispatcher"/ABC");
> rd.forward(req, res);
> Where 'ABC' is the second servlet.
>
> When executed in the browser the first servlet is displayed but gives
> 'Page not found' error at the time of invoking second servlet.
>
> 1) I am using JDK 1.2 and Tomcat 1.3.
> 2) I have placed both the servlets in the same directory.
> 3) Have included the servlet name and class file name in
> 'WEB-INF/classes/web.xml.
>
> Is there any thing that I am missing.
>
> Please reply.
>
> Thanks
>
> Ann.
>
> _________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
>
> Share information about yourself, create your own public profile at
> http://profiles.msn.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org
>
>


Mime
View raw message