Dear Mike,

You can call another servlet and send all the
parameters received from a from post event to another
servelet.
Here is code for servelet for including the content of
another servet:


        try{
        RequestDispatcher
rd=this.getServletContext().getRequestDispatcher("/another.jsp");
        rd.include(req,res);
        }catch(Exception exc){
                out.println(exc.getMessage());
        }



Here is code for servelet for forwarding the request
to another servet:


        try{
        RequestDispatcher
rd=this.getServletContext().getRequestDispatcher("/another.jsp");
        rd.forward(req,res);
        }catch(Exception exc){
                out.println(exc.getMessage());
        }


Enjoy....
Regards
Deepak Kumar
http://www.geocities.com/deepak_38



--- "Murthy, Suryanarayana (MED, TCS)"
<[EMAIL PROTECTED]> wrote:
> I think you can call but the thing is you won't get
> any page parameters in
> your request object.
>
> Murthy
>
> -----Original Message-----
> From: Margallo, Michael
> [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, July 10, 2002 10:26 AM
> To: [EMAIL PROTECTED]
> Subject: Servlet calling servlet
>
> Hi,
> Is there a way for a servlet to call a servlet
> without a form?
> Thanks,
> Mike
>


__________________________________________________
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to