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