title: How do I redirect to a html page and pass variables to that page in Java?
body: <p>I have a form on my index.html page which makes a POST request to a Java Servlet. This servlet does some processing and I would like to redirect back to index.html with some variables that the servlet has produced.</p>
  
  <p>In PHP, it would be as simple as:</p>
  
  <pre><code>header("Location: index.html?var1=a&amp;var2=b");
  </code></pre>
  
  <p>How can I acheive the same with Java, hopefully making use of a GET request.</p>
  
  <p>Thanks all</p>