This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes Ant, Maven and Other Build Tools and the fly likes ant jspc precompile problems Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "ant jspc precompile problems" Watch "ant jspc precompile problems" New topic

ant jspc precompile problems

Manu Nellutla

Joined: Aug 02, 2005
Posts: 3

i am trying to precompile JSPs using <jspc> task. But the compiled jsps do not have *$ format (just has *.java). When i try to use my precompiled files in localhost/_ it still compiles the JSP pages.

Can you please tell me how i can compile the JSP in a particular directory structure to do exactly what JSPER does?

David Ulicny
Ranch Hand

Joined: Aug 04, 2004
Posts: 724
This is dependent on which application server you are using. In weblogic we just weblogic.appc and this do the job.

SCJP<br />SCWCD <br />ICSD(286)<br />MCP 70-216
Paul Sturrock

Joined: Apr 14, 2004
Posts: 10336

As David points out this is server dependant. Typically though if you are precompiling the jsps, you won't also deploiy the uncompiled JSPs - Tomcat (in JBoss) for example will always compile JSPs it finds, regardless of whether there is an already compiled alternative.

JavaRanch FAQ HowToAskQuestionsOnJavaRanch
I agree. Here's the link:
subject: ant jspc precompile problems
It's not a secret anymore!