title: Use Java Servlets on Command Prompt
body: <p>I am looking to use Java servlets on command prompt. This is because I'd like:</p>
  
  <ol>
  <li>to be "in direct touch" with the compiler without another environment on,</li>
  <li>to use this on my netbook. Eclipse is very slow on my netbook. </li>
  </ol>
  
  <p>For this, I need <code>HttpServletRequest</code> and <code>HttpServletResponse</code> objects to pass to 
  my <code>doXXX</code> methods.  I have Tomcat installed. From what I know, Tomcat fires request/response whenever I invoke the servlets on a web-page(?) .</p>
  
  <p>Which folder should I put my servlets and which URL should I open to use them?
  This <a href="http://tomcat.apache.org/tomcat-6.0-doc/appdev/deployment.html" rel="nofollow noreferrer">document</a> says the class files 
  should be under <code>\WEB-INF\classes</code>. In this case, what URL should I enter once I start Tomcat?</p>
  
  <p>Note: I am aware that I can code a class to implement <code>HttpServletRequest</code> and <code>HttpServletResponse</code> to instantiate. I am also aware by this <a href="https://stackoverflow.com/questions/4657725/how-to-create-the-httpservletrequest-object-in-desktop-java-application">question</a> that Spring has classes implementing these two interfaces. </p>