0

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.

4

1 回答 1

0

As per the edit : Removing "Web App Libraries" and adding servlet-api.jar found in Apache6 ./lib/ folder did the trick.

于 2013-04-12T20:48:32.593 回答