javax.servlet.jsp.JspException cannot be resolved to a type 其实这个问题很简单:只需要在Tomcat的lib目录下加入:jsp-api.jar即可。