title: Servlet non-lifecycle method call from Browser
body: <p><br>
      I was wondering if it is possible to call a non-life-cycle method of a servlet directly from the Browser.<br>
  For example, just as a sample code if I have something like - </p>
  
  <pre><code>public CheckServlet extends HttpServlet {
       public void foo(HttpServletRequest req, HttpServletResponse res) {
           // do something
       }
  }
  </code></pre>
  
  <p>web.xml -   </p>
  
  <pre><code>&lt;servlet&gt;
      &lt;display-name&gt;CheckServlet&lt;/display-name&gt;
      &lt;servlet-name&gt;CheckServlet&lt;/servlet-name&gt;
      &lt;servlet-class&gt;defpkg.CheckServlet&lt;/servlet-class&gt;
  &lt;/servlet&gt;
  &lt;servlet-mapping&gt;
      &lt;servlet-name&gt;CheckServlet&lt;/servlet-name&gt;
      &lt;url-pattern&gt;/CheckServlet&lt;/url-pattern&gt;
  &lt;/servlet-mapping&gt;
  </code></pre>
  
  <p>The browser URL -   </p>
  
  <pre><code>http://localhost:8080/MyApp/CheckServlet
  </code></pre>
  
  <p>Now if I have to make a call to <code>foo()</code> from the browser, is it possible and if yes, how?  </p>
  
  <p>Kind Regards.</p>