Bill Barker wrote:
Yes, the client (a browser for example) is the one that decides what method of request to use. You respond to any of those types with the appropriate method (doGet etc). Note that you can implement one and call it from another while passing the request and response objects:You don't. The call is determined by method on the original request.
public void doGet(HttpServletRequest req, HttpServletResponse res)
throws IOException, ServletException
{
doPost(req, res);
}
hth,
Manos
"Peter Lee" <[EMAIL PROTECTED]> wrote in message
3DEB811B.8181.C9A6FA@localhost">news:3DEB811B.8181.C9A6FA@localhost...
When using the Requestdispatcher, how do you select to call doPost ordoGet method
of servlet? How to specify which one to call?
Thanks.
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
