title: Java webapp code moved to library cannot resolve HttpServletRequest
body: <p>I recently moved a bunch of classes from a webapp to some standalone library.<br><br>
  Eclipse complained that <code>HttpServletRequest</code> was not resolved, so I added <em>Web App Library</em> to my <code>Java Build Path/Libraries</code> (following StackOverflow guidance)<br></p>
  
  <p>=> Didn't change a thing although "Web App Libraries" is now included in my Libraries.
  <br>
  <br>
  <strong>How can I get HttpServletRequest to be resolved without webapp dependancies?</strong><br>
  <br>
  <strong>Edit: Removing "Web App Libraries" and adding servlet-api.jar found in Apache6 ./lib/ folder did the trick.</strong><br>
  <br>
  I just hope I am not creating a dependancy on Tomcat version.</p>