Hey everyone,

Here is my scenario: I have a JSP page that will collect a lot of user
data and credit card information then POST to a servlet. If there is
something wrong with this data (ie, the credit card data is invalid) I
need to POST that back to a JSP page (one, because I will possibly send
credit card numbers and two, because there will be too much data in the
query string with a GET).

I've tried the following code (from servlet to JSP):

                getServletConfig(
                    ).getServletContext(
                    ).getRequestDispatcher( "somePage.jsp"
                    ).forward( request,response );

That works but it's sent as a GET (long query string).

Anyone know how to send this as a POST?

Thanks in advance,
--Bill


 Bill Lynch -- [EMAIL PROTECTED]
   4charity.com        -- http://www.4charity.com
   University of Iowa  -- http://www.cs.uiowa.edu/~bmlynch
   CoolServlets.com    -- http://www.coolservlets.com
 ----------------------------------------------------------

"We don't necessarily discriminate. We simply exclude certain types of
people."
-Colonel Gerald Wellman, ROTC Instructor

___________________________________________________________________________
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