我正在尝试在我们的战争中预编译JSP。我的ant脚本分两部分完成这项工作。首先,它创建源代码,然后进行编译。
最初创建了几个源文件。此后,将抛出以下错误:
[jasper2] 2010-11-12 16:58:49,865 DEBUG [org.apache.jasper.JspC] [processFile] [Thread:main] - [Processing file: /categoryLanding/content/jeans_body.jsp]
[jasper2] 2010-11-12 16:58:49,868 DEBUG [org.apache.jasper.JspC] [processFile] [Thread:main] - [/category/content/body.jsp is out dated, compiling...]您知道是什么原因导致jsp被视为过时的吗?
发布于 2010-11-15 05:47:19
您的ant脚本是否碰巧没有触及.jsp文件日期?
来自http://www.docjar.com/html/api/org/apache/jasper/JspC.java.html
// If compile is set, generate both .java and .class, if
1174 // .jsp file is newer than .class file;
1175 // Otherwise only generate .java, if .jsp file is newer than
1176 // the .java file
1177 if( clc.isOutDated(compile) ) {
1178 if (log.isDebugEnabled()) {
1179 log.debug(jspUri + " is out dated, compiling...");
1180 }
1181
1182 clc.compile(compile, true);
1183 }https://stackoverflow.com/questions/4167512
复制相似问题