设个错误是因为项目中包含jsp-api-2.0.jar,删除该包就ok
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
本文介绍了一种常见的JSP编译错误问题及其解决方案。主要原因是项目中包含了不兼容的jsp-api-2.0.jar文件,通过删除此jar包可以解决无法编译JSP文件的问题。
设个错误是因为项目中包含jsp-api-2.0.jar,删除该包就ok
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

被折叠的 条评论
为什么被折叠?