This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Svelte and Sapper in Action and have Mark Volkmann on-line!
See this thread for details.
Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!

raj pan

Greenhorn
+ Follow
since Oct 13, 2005
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by raj pan

I am having the same problem as mentioned by E Laverdiere. John how did you make it work? Please let us know.Thank you
14 years ago
JSP
Let say I have a folder name abc and under abc i have b,c folders.I am trying to compile jsp's from b and some of b's jsps include jsp's from c .So when I do precompilation it fails or I get 0kb. Is there a way that I can include folder c when precompiling b.Thankx
14 years ago
Thanx Carol for the response.Actually I got that part working but I am having a new problem.I am trying to precompile all the jsp's with this jspc.When I use ant and precompile it gives me a new package name even I defined a package name on jspc.
I have a folder name abc and sub folder a and sub folder b.When I run precompile.bat it gives me a package name as

for folder a
org.apache.jsp.abc.a
for folder b
org.apache.jsp.abc.b
Actually its creating a package name based on folder name. So is there a way I can get only org.apache.jsp and the .java's on the same folder they belong...

<project name="JSP Pages Precompilation" default="JSPprecompile" basedir=".">

<target name="jspc">

<taskdef classname="org.apache.jasper.JspC" name="jasper2" >
<classpath id="jspc.classpath">
<pathelement location="${java.home}/lib/tools.jar"/>
<fileset dir="${tomcat.home}/server/lib">
<include name="*.jar"/>
</fileset>
<fileset dir="${tomcat.home}/common/lib">
<include name="*.jar"/>
</fileset>
<fileset dir="${webapp.path}/WEB-INF/lib">
<include name="*.jar"/>
</fileset>
<fileset dir="${webapp.path}/WEB-INF/tld">
<include name="*.tld"/>
</fileset>
</classpath>
</taskdef>

<jasper2
validateXml="false"
uriroot="${webapp.path}"
package="org.apache.jsp"
webXmlFragment="${webapp.path}/WEB-INF/JSP_precompiled_web.xml"
outputDir="${tomcat.home}/work/Standalone/localhost/_" />

</target>
<target name="JSPprecompile" depends="jspc">
</target>

</project>
14 years ago
I am trying to use jspc to precompile jsp pages using ant. I get error message if i use <%@ include file=""%> and it works just fine when I use <jsp:include page=""/>. Is there a way i can stil use <%@include%>
Thanx
14 years ago
I am trying to use jspc to precompile jsp pages using ant. I get error message if i use <%@ include file=""%> and it works just fine when I use <jsp:include page=""/>. Is there a way i can stil use <%@include%>
Thanx
14 years ago