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