Hey buddies,
I couldn't understand what poornima elicited.
first in the first servlet call the method,
HttpServletResponse.sendRedirect("absolute URLto new servlet"). and in the
new servlet for invoking doPost , do this:
....doGet(...request,...response){
doPost(request,response);
}
...doPost(...req,...res){
// server your client..
}
If this is what poornima tried to tell, then ignore this one.
luv
ks
-----Original Message-----
From: A mailing list for discussion about Sun Microsystem's Java Servlet
API Technology. [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 29, 2001 10:49 AM
To: [EMAIL PROTECTED]
Subject: Re: Invoking doPost routine of a servlet explicitly
Hi!,
Redirect the first servlet to the second servlet using
sendredirect method. With the second servlet's doGet
method, make a call to doPost method.
Friends!, If I am wrong please correct me.
Poornima Visvesvaran.
--- Ashish Adhiya <[EMAIL PROTECTED]> wrote:
> Hi All,
> How do I invoke the doPost routine of a servlet
> explicitly from within another servlet ?
> Also, I want the new servlet to be loaded into my
> browser, replacing the older one. I do not have any
> submit buttons for the same.
> Will response.sendRedirect("nameofservlet") work ?
>
> __________________________________________________
> Do You Yahoo!?
> Get email at your own domain with Yahoo! Mail.
> http://personal.mail.yahoo.com/?.refer=text
>
>
___________________________________________________________________________
> 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
__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail.
http://personal.mail.yahoo.com/?.refer=text
___________________________________________________________________________
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
___________________________________________________________________________
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