Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

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

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 112
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 149
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Do not threaten THIS beaver! Not even with this tiny ad:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic