Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Pass hidden parameters to another URL from server side.

 
Shyam Hai
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


Hai

I want to pass hidden parameters to another URL from server side.
So i gave like this.



In confirm.jsp have some hidden parameters.
here i can reach the url. but parameters are not going.

how can i send hidden parameters from server side.

Please give the solution.
Thanks.

Ragav
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34671
367
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It sounds like you have hidden values on the form submitted with confirm.jsp and you want to send them to the server at 198.162.16.10. You can't. You're options are to submit them in the URL as a GET or have the user submit another form and use a POST. Let's look at the flow as to why:

1) User submits confirm.jsp
2) Hidden parameters are in the HttpServletRequest to your server
3) You do stuff on your server
4) Struts forwards to the other server
5) The user sees the aspx page on the other server

Since the aspx page is on another server, it doesn't have access to your HttpServletRequest.
 
Shyam Hai
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hai Jeanne

Thanks.
how to do that.
can you give example code for that.

Ragav
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic