If you don't care about the parameters being visible via the query string,
use
HttpUtils.parseQueryString and HttpUtils.parsePostData to generate some
hashtables
from your original request.  Since the format of these hashtables is well
described
in the JavaDocs, it should be fairly simple to write a method to transform
the
contents of a hashtable in this format into a query string.

Once the new query string is available, simply redirect to a URL including
the entire
query string.

-AMT

> >From: "Bragg, Casey" <[EMAIL PROTECTED]>
> >Reply-To: "Bragg, Casey" <[EMAIL PROTECTED]>
> >To: [EMAIL PROTECTED]
> >Subject: Forwarding POSTed data
> >Date: Thu, 23 Mar 2000 12:45:31 -0600
> >
> >Consider the following :
> >    1) User fills out an HTML form
> >    2) The form is POSTed to JSP page A
> >    3) That JSP page makes a decision to forward the posted request to a
> >URL
> >on a different server (The 'different server' part is the key).  The
> >destination URL could be anything from an HTML page to a servlet to
> >whatever.  The nature of the destination cannot be relevant to the
> >solution.
> >
> >
> >Anyone know how to accomplish the forward in step 3?  jsp:forward only
> >works
> >with destinations within the originating servletcontext.  I can have an
> >associated bean do a sendRedirect to the destination, but the posted data
> >is
> >apparently not forwarded.
> >
> >I'm going nowhere fast... Your help is greatly appreciated!
> >
> >Thanks...
> >
> >...Casey

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to