问题
I wanted to use javax.servlet.http.HttpSessionListener
interface in my project. The project can't find a proper jar.
Which jar do I need to include in the project? Which package?
Edit
Seems like a different problem, new question here.
回答1:
I think servlet-api.jar
will do it.
and if project still can't find a proper jar, then you must try to add it again [as you have said that you are using eclispe so you can add it using properties-> build path -> configure build path -> add external jars
].
回答2:
Depends on what else you need and what you have lying around. Or which container you are using. See http://findjar.com/class/javax/servlet/http/HttpSessionListener.html
来源:https://stackoverflow.com/questions/14457258/which-jar-for-interface-httpsessionlistener