But can i store request parameters and send to other domain using using POST method
Also, my test.jsp in other domain should use these request parameters
sendRedirect() method takes String argument. You can append parameters to this string and then pass this to sendRedirect method
Your string then will be something like ..
Eshwar Prasad
Ranch Hand
Joined: Mar 21, 2008
Posts: 191
posted
0
You can append parameters to this string and then pass this to sendRedirect method
Yes, i can pass, then it would be passing parameters through query string. Then it is using GET method, right.
I have a requirement that these parameters should not be visible while passing because these are secure parameters
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35241
7
posted
0
Assuming that the web page is served from server A, do you want the flow to be: client -> server A -> server B, or do you want the flow to be: client -> server B? If the former, should the response come from server A or from server B?
Eshwar Prasad
Ranch Hand
Joined: Mar 21, 2008
Posts: 191
posted
0
Initially the client would access server A-here all the information will be populated in request and this request should be POSTED to server B for further processing. Server B is a third party domain which would validate the information and they would take care of rest of the updates which i would not have the control.
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35241
7
posted
0
So the response should come from server B? That's possible only if you use a client-side redirect - which is a GET, and thus all parameters are visible.
Server A could make web service call to server B to send all the data, and then send a client-side redirect to server B to the browser with nothing but a cryptologically secure ID as parameter (so that server B knows which data to access for this client).