Ok, here is what I was trying to do:
I need to log outgoing connection from our site when a user clicks on
a link that takes him to one of our partnet sites. When the click on a link
that goes to another site they are first redirected to a servlet that logged
the url they want to go to and then uses sendRedirect function to send along their
merry
way. It works great until we tried making our forms use it as well. sendredirect is not
made for forwarding data not in the query string. the Requestdispatcher does do this
but
it seems to only work if the forward target in on the same server as forwarding page.
is there a workaround?
Ellecer Valencia wrote:
> a sendRedirect() actually means the servlet sends a 302 response to the
> browser, along with the specified URL. browser then does a GET from that
> URL. as far as i know, there is no way to do a POST using
> sendRedirect().
>
> can you give more detail on what you're actually trying to do? by "next
> site" i assume it's an external site. does the next site require a
> POST or can you just make do with just using get and having the fields
> in the querystring?
>
>
> Vincent Stoessel wrote:
>
>> Hi,
>>
>> I'm writing a simple redirector servlet
>> for a part of my site. it seems that
>> sendRedirect in javax.servlet.http.HttpServletResponse
>> will change a POST method into a get as it redirects.
>> Any work arounds for this? I need the post info to continue
>> to the next site. Thanks.
>>
>> --
>> Vincent Stoessel [EMAIL PROTECTED]
>> Internet Applications Engineer
>> IDEV http://www.idev.com
>> V: 301 495 7345 x129
>>
>> ___________________________________________________________________________
>> 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
--
Vincent Stoessel [EMAIL PROTECTED]
Internet Applications Engineer
IDEV http://www.idev.com
V: 301 495 7345 x129
___________________________________________________________________________
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