Eclipse javax.servlet.jsp.PageContext cannot be resolved to a type

web项目部署到tomcat报错:Eclipse javax.servlet.jsp.PageContext cannot be resolved to a type

解决办法:

1.项目右键--->Build Path--->Add Libraries

2.点击Server Runtime--->next

3.选中tomcat--->finish

4.Libraries中会有Tomcat

6.Order and Exception--->勾选Tomcat--->apply--->OK

问题解决!

猜你喜欢

转载自blog.csdn.net/weixin_42210904/article/details/87298155
今日推荐