javax.servlet.jsp cannot be resolved to a type

After searching on google, I found how to solve this error.Add this to your Maven dependency(pom.xml):

Do comment if you find it useful, as much as it helped me.
<!-- dependency to fix JSPServletException -->
    <dependency>
        <groupId>org.apache.tomcat</groupId>
        <artifactId>jsp-api</artifactId>
        <version>6.0.32</version>
        <scope>provided</scope>               
    </dependency>

 

 
posted @ 2013-03-16 12:06  daveztong  阅读(739)  评论(0编辑  收藏  举报