title: How to call a servlet on jsp page load?
body: <p>I have below servlet. I would like to call the servlet on <code>jsp</code> page load. How can I do that?</p>
  
  <p>servlet:  <code>SomeServlet.java</code></p>
  
  <pre><code>&lt;servlet&gt;
    &lt;servlet-name&gt;Hello&lt;/servlet-name&gt;
    &lt;servlet-class&gt;SomeServlet&lt;/servlet-class&gt;
   &lt;/servlet&gt;
   &lt;servlet-mapping&gt;
   &lt;servlet-name&gt;Hello&lt;/servlet-name&gt;
   &lt;url-pattern&gt;/HelloWorld&lt;/url-pattern&gt;
   &lt;/servlet-mapping&gt;
  </code></pre>
  
  <p>How can I write corresponding jsp to invoke the servlet on jsp page load. Also I need to get the result from servlet and display in the same jsp. Can I send result back to <code>jsp</code>?</p>
  
  <p>Thanks!</p>