tomcat与jsp问题???
在网上找了关于tomcat的配置及使用文档,按着上面的做,启动后能打开http://localhost:8080/。然后按提示在webapps里创建myapp/WEB-INF/web.xml。在myapp中添加一index.jsp,启动tomcat,在浏览器输入http://localhost:8080/myapp/index.jsp,却错误org.apache.jasper.JasperException: Unable to compile class for JSP: An error occurred at line: 22 in the generated java file
The method getJspApplicationContext(ServletContext) is undefined for the type JspFactory
Stacktrace:
org.apache.(DefaultErrorHandler.java:92)
org.apache.(ErrorDispatcher.java:330)
org.apache.(JDTCompiler.java:423)
org.apache.(Compiler.java:317)
org.apache.(Compiler.java:295)
org.apache.(Compiler.java:282)
org.apache.jasper.(JspCompilationContext.java:586)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
在网上找了许多答案,人家解决了为什么我却不行呢??我快被这东西搞疯了,哪位大侠帮帮忙,感激涕零!!