Hi,
Try the following
try
{
RequestDispatcher dispatcher = getServletContext().getRequestDispatcher
( TargetServletPath );
dispatcher.forward( request, response );
}
catch( IOException e )
{
System.out.println( e );
}
catch( ServletException e )
{
System.out.println( e );
}
Mit freundlichen Gr��en
Christian Schildt
Diplom-Betriebswirt (FH)
Softwaredeveloper
Phone: 089/89013023
Mailto: [EMAIL PROTECTED]
________________________________________________
ELAXY AG
Gutenbergstr. 5
D-82178 Puchheim bei M�nchen
Phone: +089/8901300
Fax: +089/89013089
www.elaxy.com
________________________________________________
Pedro Salazar
<pedro-b-salazar@ptin An:
[EMAIL PROTECTED]
ovacao.pt> Kopie:
Thema: calling other servlets inside
a servlet...
25.06.2001 14:27
Bitte antworten an
tomcat-user
Greetings,
how can I call another servlet inside a servlet? And I would like to
have two options: one is that the servlet called is the final servlet,
and the other option is calling a servlet just to get a result
(outputstream) o the main servlet and continue processing the main servlet.
This is just a servlet question specification or it depends if I'm
working on tomcat or other product?
thanks,
Pedro Salazar.