Eclipse 创建 Dynamic Web Project ,jsp页面顶部报红叉,Problems面板查看错误提示 The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path
解决办法:
选择项目右键- Build Path-Configure Build Path - Java Build Path - Libraries-Add Library - Server Runtime - Next
选这一个server runtie - FINISH
如果没有server runtime 怎么办,那就去添加一个,Window -Preferences -Server -Runtime Environments-Add