Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Josh Lam
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 149
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic