Tomcat5 example webapp use precompiled jsps.
But the xml snippet generated by the ANT task is essential to using precompiled JSP's. That snippet declares each servlet in a servlet declaration then maps them to the appropriate JSP file using <servlet-mapping>.
-Tim
Thomas Weller wrote:
Hi Tim,
I think you mean the generated_web.xml file generated by Ant. Until now, I was unable to compile my Project with Ant, so I don't have
that file. But maybe there is an XML Tag inside to tell Tomcat not to
compile the sources which I could use.
Is there an example file of generated_web.xml? I was unlucky searching
the web for one.
Thomas
-----Ursprungliche Nachricht-----
Von: Tim Funk [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 1. Juli 2003 12:50
An: Tomcat Users List
Betreff: Re: deleting JSP Files?
Have have put the mappings of the class files to your jsp's in your
web.xml? JSPC should provide a mechanism to give you a snippet of XML to place in
web.xml. That needs to be there for precompiling to work.
-Tim
Thomas Weller wrote:
Hello,
I have a JSP Project I want to deliver on CD. Of course I don't want
to
provide all sources, so I decided only to include class-files.
I precompiled all JSP files to class files and then deleted the JSP files. Unfortunately, this does not seem to work. Tomcat generates a file not found error. Second, I compiled the JSPs and then overwrite each of them with a single whitespace character. Even if Tomcat runs
on
a write protected medium (with just access to the TEMP directory), it displays a blank page then. How can that be? I thought that Tomcat
would
use the class-files, if they exist. Any suggestions?
My setting is autoDeploy="false".
Thanks,
Thomas
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
