Hi Anthony,

The compile time for my .jsp pages is extremely slow -- like 10 seconds
on a modern PC to the first time any page is run.  Painful during
development.


I can compile a vast amount of Java code in 2 seconds.  It is difficult
to imagine what could be happening within Jasper to be that slow.

The slow compile time of Jasper is expected behavior.

JSP pre-compiling should only be done immediately before creating a
WAR file, there is no need to pre-compile your JSPs during development
of your application.

Many people pre-compile JSPs to see the changes they've made to the
JSPs , this is not necessary at all. All you need to do to see the
changes is refresh your browser. Just point the docBase (if your
project is outside Tomcat's folder) to your Project's root folder and
make changes to the JSP and refresh the browser.

As an alternative to JSP pre-compiling with a compiler, you could also
achieve the same results with Apache Cactus --- it unit tests your JSP
pages and in the process calls each JSP page and as a result of the
first call pages get pre-compiled. I was given this tip on the Ant
mailing list, but have not tried it yet.  The advantage they said was
that it keeps your JSPs portable across web containers.

-Rashmi

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to