its a spring boot project with tomcat 7 and java 6. i am trying to pre-compile jsps using jasper.Jspc but in generated java ELs are not being evaluated.
out.write(" script src=\"${pageContext.request.contextPath}/resources/js/AdvanceDeviceInfo.js\"> \r\n");
it should be something like :
out.write((java.lang.String)org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${pageContext.request.contextPath}"
if i use <%@ page isELIgnored="false" %>
in individual jsps then its being evaluated properly. please help i don't to go and change every jsp.
Ant Script for precompilation
<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>