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: Share on Facebook (Opens in new window) Facebook Share on X (Opens in new window) X Email a link to a friend (Opens in new window) Email Print (Opens in new window) 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