Hi, everyone,

I want to simulate form data posting from one servlet to another. I
understand that I can use request dispatcher or sendRedirect to call a
servlet from a servlet. I also understand that I can pass for data through
the reqeust object if I use request dispatcher or through encoded query
string if I use sendRedirect. And I know URLConnection is another
alternative. What I want to do is to simulate form posting through http
header manipulation. For example,
        response.setHeader("Location", "/destinationservlet");
        response.setContentType("text/html");
        response.setHeader("Method", "POST");      // is this correct?
        ...
        ...

destinationservlet is the servlet being called. But I am not sure how I can
pass form data to the called servlet. Does anybody have suggestions?

Thanks.

Robert

___________________________________________________________________________
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