바람둥이 7과 Java 6이있는 스프링 부트 프로젝트입니다. jasper.Jspc를 사용하여 jsp를 사전 컴파일하려하지만 생성 된 Java EL이 존재하지 않습니다. 평가.el은 jsp가 jspc 인 jspc가있는 jspc로 평가되고 있지 않습니다.
out.write ("스크립트 src = \"$ {pageContext.request.contextPath} /resources/js/AdvanceDeviceInfo.js \ "> \ r \ n");
이해야 뭔가 같은 :
out.write ((java.lang.String의) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate ("$ {pageContext.request.contextPath}"
<%@ page isELIgnored="false" %>
를 사용하는 경우
. 내가 가서 모든 JSP를 변경하지 않습니다 도와주세요.
개미 스크립트를 사전 컴파일
<target name="main">
<echo message="base dir: ${project.basedir}"/>
<echo message="compile_classpath: ${compile_classpath}"/>
<mkdir dir="${target_dir}/java"/>
<mkdir dir="${target_dir}/resources"/>
<path id="jspc_classpath">
<path path="${compile_classpath}"/>
</path>
<!-- <property environment="org.apache.jasper.compiler.Parser.STRICT_QUOTE_ESCAPING" value="false"/> -->
<taskdef classname="org.apache.jasper.JspC" name="jasper" classpathref="jspc_classpath"/>
<copy todir="${project.basedir}/target/jsp">
<fileset dir="${project.basedir}/src/main/webapp">
<include name="**/templates/*.jsp"/>
<include name="**/views/**"/>
<exclude name="**/CVS/**"/>
</fileset>
</copy>
<copy todir="${project.build.outputDirectory}/public/resources">
<fileset dir="${project.basedir}/src/main/webapp/resources">
<include name="**/css/**"/>
<include name="**/img/**"/>
<include name="**/fonts/**"/>
<include name="**/js/**"/>
<include name="**/pie/**"/>
<exclude name="**/CVS/**"/>
</fileset>
</copy>
<jasper verbose="0"
uriroot="${project.basedir}/target/jsp"
webxml="${target_dir}/resources/jsp-web.xml"
trimSpaces="true"
outputDir="${target_dir}/java/" >
</jasper>
<copy todir="${project.build.outputDirectory}">
<fileset dir="${target_dir}/resources"/>
</copy>
<javac srcdir="${target_dir}/java"
destdir="${project.build.outputDirectory}"
classpathref="jspc_classpath"
fork="true"
encoding="UTF-8"
includeantruntime="false"/>
</target>
에 대한
안녕하세요 BalusC, 도와주세요. – user2862544