title: Pass POST parameters to another JSP file
body: <p>I have two separate web applications. Lets say <strong>app1</strong> and <strong>app2</strong>. Both are hosted in different server with different domain. </p>
  
  <p>Now in app1 there is a link. On clicking over that link i have to call app2's login page with username and password and display the response. But username and password should not visible in URL.</p>
  
  <p><strong>Current Approach :</strong></p>
  
  <p>Now I accomplished my task by creating an iframe and passing username and password params in query string.</p>
  
  <p>Like: www.app2.com/login.jsp?username=abc&amp;password=xxx</p>
  
  <p>By hitting above URL, user get logged-in and home page renders.</p>
  
  <p><strong>Required Approach</strong></p>
  
  <p>I want to call login page of another application with username and password as post parameters . And I want to do all my stuffs in server side without disclosing login credentials.</p>
  
  <p><strong>Note:</strong> I have control over <strong>app1</strong> only I cant tweak code of <strong>app2</strong>. I am developing app1 in using JSP, struts 1.3.</p>
  
  <p>The username and password for both the app are different. App1 is my app and app2 is third party report service.</p>
  
  <p>Hope you got my point !!</p>