aspose file tools*
The moose likes Servlets and the fly likes How Do I Forward/Redirect Extra Parameters From JSP To ASP via POST? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "How Do I Forward/Redirect Extra Parameters From JSP To ASP via POST?" Watch "How Do I Forward/Redirect Extra Parameters From JSP To ASP via POST?" New topic
Author

How Do I Forward/Redirect Extra Parameters From JSP To ASP via POST?

Josh Lam
Greenhorn

Joined: Feb 16, 2000
Posts: 19
Hi,
I need to redirect from a JSP page to an existing ASP page.
I realized that I can use a request.sendRedirect(), however, I also need to send some new parameters (along with those I received through an earlier POST to my JSP page) to the ASP page. I am required to use POST because the ASP page is *expecting* a POST.
Unfortunately, I cannot change the existing ASP page to use GET.
Would appreciate any help.
Thanks!
--
Josh
Zoe Peng
Ranch Hand

Joined: Nov 27, 2000
Posts: 112
Hello. every1,
I had the similar problem now.
how do you make it right finally?
as I know, sendRedirect() is just load another pages.
the redirect page I want to is also just support "POST" to get the param that I send it eariler.
Thanks in advance.
Maky Chopra
Ranch Hand

Joined: Apr 11, 2001
Posts: 149
This can be done pretty easily.. I have done this with a standalone java program and am sure it could be done by setting the appropriate header methods.. I dont have the time to try this today, so i''' just paste the java code i used and you could use it as a startting point.
What is the data you need to send as a POST ? If its a username password, you will have to encode it.. Basically, you need to understand the HTTP format that your asp page is expecting and duplicate it using jsp.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How Do I Forward/Redirect Extra Parameters From JSP To ASP via POST?