Ashish:
You could do this is in a couple of ways: If your first servlet has already
commited response to the browser window, then you cannot use
Response.sendRedirect. In this case, you could have an "invisible" form: use a
transparent gif for a submit button, and use JavaScript to submit the form.
Make sure your action is "Post" if you explicitly want the doPost method to be
executed (rather than the doGet()..) If your first servlet has not commited any
response to the browser window, then i dont see why Response.sendRedirect
should not work. (Have you tried it?)..
Regards,
Geeta
Ashish Adhiya 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
___________________________________________________________________________
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