Jason Palmatier wrote:
Thank you for your reply. I need the JSPs precompiled
for performance and security reasons. Performanace
because we don't want the end user to have a bad
"first impression" when attempting to access our
application the first time and having to wait for each
page to compile first.
Are you sure your users have network connection fast enough to see the difference?
Security because we don't want to ship out our source jsp files, we'd rather just ship
out class files.
Hm, interesting point. Are you ready to precompile your application for each and
every version of each and every container?
I believe the
${tomcat}/work/Catalina/localhost/${context name}
directory is where Tomcat places the class files when
it compiles them on the first access to a non-compiled
jsp. Is this correct? We have compiled jsps in the
past and run them by placing them in the
WEB-INF/classes directory but the current app has many
subdirectories which is where I think we're getting
hung up. My guess is that I need to compile my jsps
to .java files in such a way as to have their
directory structure included in their "package"
statement. Then do the compile from .java to .class
files. Is having the subdirectories in the "package"
statement the crucial step I need to solve this?
Yes in general but it depends on application server version used. In Tomcat 4.x
series the directory structure is not reflected in generated .java files - they
all placed in org.apache.jsp package. Newer Tomcat (5.x) reflect directory
structure in package names, e.g. org.apache.jsp.WEB_002dINF.jsp.survey_002dgroup
package is used for file in WEB-INF/jsp/survey-group directory.
--
Illya Kysil, software developer
Delphi/C/C++/C#/Java/Forth/Assembler
-------------------------------------------------------------------------
No trees were harmed in the generation of this e-mail.
A significant number of electrons were, however, severely inconvenienced.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]