• 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
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

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.
 
"Don't believe every tiny ad you see on the internet. But this one is rock solid." - George Washington
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic