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.
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...
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...
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.