You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Peter Lee <to...@shaw.ca> on 2002/12/03 00:49:48 UTC
How do you select to call doPost or doGet method?
When using the Requestdispatcher, how do you select to call doPost or
doGet method of servlet? How to specify which one to call?
Thanks.
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: How do you select to call doPost or doGet method?
Posted by Garrett Smith <ja...@yahoo.com>.
What did you forward from?
If you're forwarding from a doPost method, the servlet you're forwarding to
will call doPost. Same principal applies to a RequestDispatcher forwarding from
a doGet method.
ServletA
doPost ->forward -> ServletB
doPost
The HttpServletRequest has post data or get data.
--- Peter Lee <to...@shaw.ca> wrote:
> When using the Requestdispatcher, how do you select to call doPost or
> doGet method of servlet? How to specify which one to call?
>
> Thanks.
>
>
> --
> To unsubscribe, e-mail: <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
>
=====
http://dhtmlkitchen.com/
JSP | Servlets | DHTML
Garrett Needs A Job
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>