There seem to be a number of differences between the runtime compiler and
the command line compiler (i.e. jspc which is called by ANT).  One of them
being with file naming (the problem you describe).  Also you will find that
if you have an underscore in the jsp file name both compilers will name them
differently.  For example a file named a_b.jsp will be named a_b.java by the
command line compiler and a_0005fb$jsp.java by the runtime compiler.  To get
it to work right, I had to go into Jasper and fix the code to make name
files consistently.  I don't know if this has been fixed in Jasper2.

Subir

-----Original Message-----
From: Ojars Kalnins [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 19, 2002 6:50 AM
To: Tomcat MailingList
Subject: precompilation of jsp pages


Hi!

I am using tomcat 4.0 and have problem with the precompilation of jsp pages.
Can anybody say why tomcat generates java files with name containing "$jsp"?
For example, "index.jsp" is generated to "index$jsp.java" file.

I wanted to use ANT (1.5.1) to precompile jsp files.
ANT generates java files without "$jsp" and tomcat does not use them, but
generates new files using "$jsp" in the file and class name.
Therefore I can use ANT only to check jsp errors, but I don't get fast
initial invocation of jsp pages when tomcat is started.

Thanks in advance,
    Ojars

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to