Hi Manisha,

The simple way out to this problem is to call doPost() from doGet() method.
When you call a servlet from a servlet... the doGet() method of the invoved
servlet is called... so your doPost() method is invoked. I hope that answers to
your question.
Regards,
Manish Bhatnagar

Manisha Menon wrote:

> Hi all,
>
> Can someone tell me how to invoke doPost() method of a
> servlet from another servlet ? I think by forwarding
> using RequestDispatcher, you can only call doGet()
> method, right ? Please reply me how to call doGet()
> directly.
>
> Thank you
>
> Manisha
>
> __________________________________________________
> Do You Yahoo!?
> Send instant messages with Yahoo! Messenger.
> http://im.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

--
---------------------------------Live-Your-Dream--------
Manish Bhatnagar
Software Engineer
Accord Software & Systems Pvt. Ltd.
37, Krishna Reddy Colony
Domlur Layout
Bangalore - 560 071
India
Telephone: +91-80-5560105 x 211
Fax: +91-80-5562723

Obstacles are things a person sees when he takes his eyes off his goal.
                                                             -E. Joseph Cossman

---------------------------------Live-Your-Dream--------

___________________________________________________________________________
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