The import javax.servlet.annotation cannot be resolved Mirthbees 13 years ago Problem: Solution: Download the servlet-api-3.0 and put this in lib of web-inf. Note: For javax.servlet import servlet-api 2.4 is enough, only for javax.servlet.annotation we need servlet-api-3.0. Share this:Print spring mvc hello world example step by stepDateMay 25, 2013In relation toJ2EEPassing clicked value from jsp to jsp/servletDateApril 3, 2013In relation toJ2EEJSON in Servlet with Ajax callDateJanuary 21, 2015In relation toJ2EE