title: How to redirect requests to https from a servlet
body: <p>I have a website where the welcome-file is a servlet.</p>
  
  <pre><code>&lt;welcome-file-list&gt;
      &lt;welcome-file&gt;Main&lt;/welcome-file&gt;
   &lt;/welcome-file-list&gt;
  </code></pre>
  
  <p>The servlet collects the data from the database and send it to JSP. How can I redirect all the requests to https from the main servlet?
  Any idea???
  Thanks</p>