This week's book giveaway is in the General Computing forum. We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line! See this thread for details.
I want to redirect the request to url in different application through https. Problem is I cannot use request.sendRedirect because contents of the original request, such as POST parameters, will be lost. Is there any alternative. Thanks
requestdispatcher.forward() method only works when you are forwarding the request in same application. In my case I am trying to forward request to another application.
Shakti Sharma
Ranch Hand
Joined: Dec 19, 2000
Posts: 60
posted
0
Originally posted by Gaurav Jain: use the requestdispatcher.forward() method.
URL rewriting is for session management. Use a HttpClient to make a new post request.
SCJP, SCWCD, SCBCD, IBM CSD WebSphere v5, <br />A+, MCP 2000 and 2000 server, CST, and few incompleted certification tracks.<br /> <br />Ivory Coast<br /> <br />Analyze your web Request/Response @ <a href="http://webtools.servehttp.com" target="_blank" rel="nofollow">http://webtools.servehttp.com</a> down for a while...
Shakti Sharma
Ranch Hand
Joined: Dec 19, 2000
Posts: 60
posted
0
Hi Brahim, Can you explain what is HTTPClient and how to use it. Thanks Shak
Brahim Bakayoko
Ranch Hand
Joined: Aug 29, 2003
Posts: 155
posted
0
Originally posted by Shakti Sharma: Hi Brahim, Can you explain what is HTTPClient and how to use it. Thanks Shak
requestdispatcher.forward() can be used to call requests from a different application also. For that you need to have the servlet context of that aaplication. I do not have the exact code with me, but i know that it can be done. Would try to post the exact code when i get hold of it.