I am not using maven to build my project and i require the session variable that why i need servlet-api.jar file in the build path . But when i am configuring using it maven its throwing me the error
servlet-api.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
the code for session variable
(session.getAttribute("surveyDesc")
just because stackoverflow was not allowing me to post the question else .