cvs commit: jakarta-tomcat-catalina/webapps/docs jasper-howto.xml
pero2004/10/05 00:01:09 Modified:webapps/docs jasper-howto.xml Log: Fix typo.. CVS: -- CVS: PR: CVS: If this change addresses a PR in the problem report tracking CVS: database, then enter the PR number(s) here. CVS: Obtained from: CVS: If this change has been taken from another system, such as NCSA, CVS: then name the system in this line, otherwise delete it. CVS: Submitted by: CVS: If this code has been contributed to Apache by someone else; i.e., CVS: they sent us a patch or a new module, then include their name/email CVS: address here. If this is your work then delete this line. CVS: Reviewed by: CVS: If we are doing pre-commit code reviews and someone else has CVS: reviewed your changes, include their name(s) here. CVS: If you have not had it reviewed then delete this line. Revision ChangesPath 1.19 +1 -1 jakarta-tomcat-catalina/webapps/docs/jasper-howto.xml Index: jasper-howto.xml === RCS file: /home/cvs/jakarta-tomcat-catalina/webapps/docs/jasper-howto.xml,v retrieving revision 1.18 retrieving revision 1.19 diff -u -r1.18 -r1.19 --- jasper-howto.xml 5 Oct 2004 01:46:00 - 1.18 +++ jasper-howto.xml 5 Oct 2004 07:01:08 - 1.19 @@ -119,7 +119,7 @@ listrongmodificationTestInterval/strong - Checks for modification for a given JSP file (and all its dependent files) will be performed only once every specified amount -of milliseconds. Setting this to a value =0 will cause the JSP to be checked on every access, which is the default./li +of milliseconds. Setting this to a value lt;=0 will cause the JSP to be checked on every access, which is the default./li listrongreloading/strong - Should Jasper check for modified JSPs? codetrue/code or codefalse/code, default codefalse/code./li - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: cvs commit: jakarta-tomcat-catalina/webapps/docs jasper-howto.xml
[EMAIL PROTECTED] wrote: luehe 2004/10/04 18:46:00 Modified:jasper2/src/share/org/apache/jasper/resources LocalStrings.properties jasper2/src/share/org/apache/jasper EmbeddedServletOptions.java JspC.java jasper2/src/share/org/apache/jasper/compiler Compiler.java webapps/docs jasper-howto.xml Log: Changed default of modificationTestInterval to 0, so that by default we continue to check for last modification date on each access in development mode. Remy, let me know if you have any issues w/ this. Actually, I do: I want a good default, so this means somthing like 2-4s. Rémy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cvs commit: jakarta-tomcat-catalina/webapps/docs jasper-howto.xml
remm2004/10/05 00:12:45 Modified:jasper2/src/share/org/apache/jasper/resources LocalStrings.properties webapps/docs jasper-howto.xml Log: - It's simple: good defaults. Revision ChangesPath 1.4 +2 -2 jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/resources/LocalStrings.properties Index: LocalStrings.properties === RCS file: /home/cvs/jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/resources/LocalStrings.properties,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- LocalStrings.properties 5 Oct 2004 01:46:00 - 1.3 +++ LocalStrings.properties 5 Oct 2004 07:12:45 - 1.4 @@ -143,7 +143,7 @@ jsp.warning.sendErrToClient=Warning: Invalid value for the initParam sendErrToClient. Will use the default value of \false\ jsp.warning.classDebugInfo=Warning: Invalid value for the initParam classdebuginfo. Will use the default value of \false\ jsp.warning.checkInterval=Warning: Invalid value for the initParam checkInterval. Will use the default value of \300\ seconds -jsp.warning.modificationTestInterval=Warning: Invalid value for the initParam modificationTestInterval. Will use the default value of \0\ milliseconds +jsp.warning.modificationTestInterval=Warning: Invalid value for the initParam modificationTestInterval. Will use the default value of \4000\ milliseconds jsp.warning.development=Warning: Invalid value for the initParam development. Will use the default value of \true\ jsp.warning.fork=Warning: Invalid value for the initParam fork. Will use the default value of \true\ jsp.warning.reloading=Warning: Invalid value for the initParam reloading. Will use the default value of \true\ 1.20 +2 -1 jakarta-tomcat-catalina/webapps/docs/jasper-howto.xml Index: jasper-howto.xml === RCS file: /home/cvs/jakarta-tomcat-catalina/webapps/docs/jasper-howto.xml,v retrieving revision 1.19 retrieving revision 1.20 diff -u -r1.19 -r1.20 --- jasper-howto.xml 5 Oct 2004 07:01:08 - 1.19 +++ jasper-howto.xml 5 Oct 2004 07:12:45 - 1.20 @@ -119,7 +119,8 @@ listrongmodificationTestInterval/strong - Checks for modification for a given JSP file (and all its dependent files) will be performed only once every specified amount -of milliseconds. Setting this to a value lt;=0 will cause the JSP to be checked on every access, which is the default./li +of milliseconds. Setting this to -1 will cause the JSP to be checked on every access. +Default is code4000/code milliseconds./li listrongreloading/strong - Should Jasper check for modified JSPs? codetrue/code or codefalse/code, default codefalse/code./li - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cvs commit: jakarta-tomcat-catalina/webapps/docs jasper-howto.xml
remm2004/10/05 00:24:33 Modified:jasper2/src/share/org/apache/jasper/resources LocalStrings.properties jasper2/src/share/org/apache/jasper EmbeddedServletOptions.java jasper2/src/share/org/apache/jasper/compiler Compiler.java webapps/docs jasper-howto.xml Log: - modificationTestInterval is now a value in seconds, as per Jan's suggestion. However, the default is not 0, since I'm fairly certain that there are people who use the default config, and probably think Jasper is slow. Revision ChangesPath 1.5 +2 -2 jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/resources/LocalStrings.properties Index: LocalStrings.properties === RCS file: /home/cvs/jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/resources/LocalStrings.properties,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- LocalStrings.properties 5 Oct 2004 07:12:45 - 1.4 +++ LocalStrings.properties 5 Oct 2004 07:24:33 - 1.5 @@ -143,7 +143,7 @@ jsp.warning.sendErrToClient=Warning: Invalid value for the initParam sendErrToClient. Will use the default value of \false\ jsp.warning.classDebugInfo=Warning: Invalid value for the initParam classdebuginfo. Will use the default value of \false\ jsp.warning.checkInterval=Warning: Invalid value for the initParam checkInterval. Will use the default value of \300\ seconds -jsp.warning.modificationTestInterval=Warning: Invalid value for the initParam modificationTestInterval. Will use the default value of \4000\ milliseconds +jsp.warning.modificationTestInterval=Warning: Invalid value for the initParam modificationTestInterval. Will use the default value of \4\ seconds jsp.warning.development=Warning: Invalid value for the initParam development. Will use the default value of \true\ jsp.warning.fork=Warning: Invalid value for the initParam fork. Will use the default value of \true\ jsp.warning.reloading=Warning: Invalid value for the initParam reloading. Will use the default value of \true\ 1.17 +1 -1 jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/EmbeddedServletOptions.java Index: EmbeddedServletOptions.java === RCS file: /home/cvs/jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/EmbeddedServletOptions.java,v retrieving revision 1.16 retrieving revision 1.17 diff -u -r1.16 -r1.17 --- EmbeddedServletOptions.java 5 Oct 2004 07:07:00 - 1.16 +++ EmbeddedServletOptions.java 5 Oct 2004 07:24:33 - 1.17 @@ -167,7 +167,7 @@ /** * Modification test interval. */ -private int modificationTestInterval = 4000; +private int modificationTestInterval = 4; /** * Is generation of X-Powered-By response header enabled/disabled? 1.95 +1 -1 jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/Compiler.java Index: Compiler.java === RCS file: /home/cvs/jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/Compiler.java,v retrieving revision 1.94 retrieving revision 1.95 diff -u -r1.94 -r1.95 --- Compiler.java 5 Oct 2004 01:46:00 - 1.94 +++ Compiler.java 5 Oct 2004 07:24:33 - 1.95 @@ -324,7 +324,7 @@ if ((jsw != null) (ctxt.getOptions().getModificationTestInterval() 0) ((jsw.getLastModificationTest() -+ ctxt.getOptions().getModificationTestInterval()) ++ (ctxt.getOptions().getModificationTestInterval() * 1000)) System.currentTimeMillis())) { return false; } 1.21 +2 -2 jakarta-tomcat-catalina/webapps/docs/jasper-howto.xml Index: jasper-howto.xml === RCS file: /home/cvs/jakarta-tomcat-catalina/webapps/docs/jasper-howto.xml,v retrieving revision 1.20 retrieving revision 1.21 diff -u -r1.20 -r1.21 --- jasper-howto.xml 5 Oct 2004 07:12:45 - 1.20 +++ jasper-howto.xml 5 Oct 2004 07:24:33 - 1.21 @@ -119,8 +119,8 @@ listrongmodificationTestInterval/strong - Checks for modification for a given JSP file (and all its dependent files) will be performed only once every specified amount -of milliseconds. Setting this to -1 will cause the JSP to be checked on every access. -Default is code4000/code milliseconds./li +of milliseconds. Setting this to 0 will cause the JSP to be checked on every access. +Default is code4/code seconds./li listrongreloading/strong - Should Jasper check
cvs commit: jakarta-tomcat-catalina/webapps/docs jasper-howto.xml
luehe 2004/10/05 12:48:07 Modified:webapps/docs jasper-howto.xml Log: modificationTestInterval is now specified in seconds Revision ChangesPath 1.22 +1 -1 jakarta-tomcat-catalina/webapps/docs/jasper-howto.xml Index: jasper-howto.xml === RCS file: /home/cvs/jakarta-tomcat-catalina/webapps/docs/jasper-howto.xml,v retrieving revision 1.21 retrieving revision 1.22 diff -u -r1.21 -r1.22 --- jasper-howto.xml 5 Oct 2004 07:24:33 - 1.21 +++ jasper-howto.xml 5 Oct 2004 19:48:07 - 1.22 @@ -119,7 +119,7 @@ listrongmodificationTestInterval/strong - Checks for modification for a given JSP file (and all its dependent files) will be performed only once every specified amount -of milliseconds. Setting this to 0 will cause the JSP to be checked on every access. +of seconds. Setting this to 0 will cause the JSP to be checked on every access. Default is code4/code seconds./li listrongreloading/strong - Should Jasper check for modified JSPs? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cvs commit: jakarta-tomcat-catalina/webapps/docs jasper-howto.xml
luehe 2004/10/04 18:46:00 Modified:jasper2/src/share/org/apache/jasper/resources LocalStrings.properties jasper2/src/share/org/apache/jasper EmbeddedServletOptions.java JspC.java jasper2/src/share/org/apache/jasper/compiler Compiler.java webapps/docs jasper-howto.xml Log: Changed default of modificationTestInterval to 0, so that by default we continue to check for last modification date on each access in development mode. Remy, let me know if you have any issues w/ this. Revision ChangesPath 1.3 +2 -2 jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/resources/LocalStrings.properties Index: LocalStrings.properties === RCS file: /home/cvs/jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/resources/LocalStrings.properties,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- LocalStrings.properties 4 Oct 2004 17:39:45 - 1.2 +++ LocalStrings.properties 5 Oct 2004 01:46:00 - 1.3 @@ -143,7 +143,7 @@ jsp.warning.sendErrToClient=Warning: Invalid value for the initParam sendErrToClient. Will use the default value of \false\ jsp.warning.classDebugInfo=Warning: Invalid value for the initParam classdebuginfo. Will use the default value of \false\ jsp.warning.checkInterval=Warning: Invalid value for the initParam checkInterval. Will use the default value of \300\ seconds -jsp.warning.modificationTestInterval=Warning: Invalid value for the initParam modificationTestInterval. Will use the default value of \4000\ milliseconds +jsp.warning.modificationTestInterval=Warning: Invalid value for the initParam modificationTestInterval. Will use the default value of \0\ milliseconds jsp.warning.development=Warning: Invalid value for the initParam development. Will use the default value of \true\ jsp.warning.fork=Warning: Invalid value for the initParam fork. Will use the default value of \true\ jsp.warning.reloading=Warning: Invalid value for the initParam reloading. Will use the default value of \true\ 1.15 +1 -1 jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/EmbeddedServletOptions.java Index: EmbeddedServletOptions.java === RCS file: /home/cvs/jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/EmbeddedServletOptions.java,v retrieving revision 1.14 retrieving revision 1.15 diff -u -r1.14 -r1.15 --- EmbeddedServletOptions.java 4 Oct 2004 17:39:45 - 1.14 +++ EmbeddedServletOptions.java 5 Oct 2004 01:46:00 - 1.15 @@ -167,7 +167,7 @@ /** * Modification test interval. */ -public int modificationTestInterval = 4000; +private int modificationTestInterval = 0; /** * Is generation of X-Powered-By response header enabled/disabled? 1.84 +1 -1 jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/JspC.java Index: JspC.java === RCS file: /home/cvs/jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/JspC.java,v retrieving revision 1.83 retrieving revision 1.84 diff -u -r1.83 -r1.84 --- JspC.java 4 Oct 2004 17:39:45 - 1.83 +++ JspC.java 5 Oct 2004 01:46:00 - 1.84 @@ -376,7 +376,7 @@ * Modification test interval. */ public int getModificationTestInterval() { -return 4000; +return 0; } /** 1.94 +6 -4 jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/Compiler.java Index: Compiler.java === RCS file: /home/cvs/jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/Compiler.java,v retrieving revision 1.93 retrieving revision 1.94 diff -u -r1.93 -r1.94 --- Compiler.java 4 Oct 2004 17:39:46 - 1.93 +++ Compiler.java 5 Oct 2004 01:46:00 - 1.94 @@ -83,7 +83,7 @@ * null otherwise */ protected String[] generateJava() throws Exception { - + String[] smapStr = null; long t1=System.currentTimeMillis(); @@ -321,9 +321,11 @@ boolean outDated = false; String jsp = ctxt.getJspFile(); -if ((jsw != null) ((jsw.getLastModificationTest() -+ ctxt.getOptions().getModificationTestInterval()) - System.currentTimeMillis())) { +if ((jsw != null) + (ctxt.getOptions().getModificationTestInterval() 0) + ((jsw.getLastModificationTest() ++ ctxt.getOptions().getModificationTestInterval()) +
cvs commit: jakarta-tomcat-catalina/webapps/docs jasper-howto.xml
remm2004/09/18 10:09:31 Modified:webapps/docs jasper-howto.xml Log: - The defaults for Jasper change a bit. - Also add the genAsCharArray parameter. Revision ChangesPath 1.16 +7 -13 jakarta-tomcat-catalina/webapps/docs/jasper-howto.xml Index: jasper-howto.xml === RCS file: /home/cvs/jakarta-tomcat-catalina/webapps/docs/jasper-howto.xml,v retrieving revision 1.15 retrieving revision 1.16 diff -u -r1.15 -r1.16 --- jasper-howto.xml 1 Sep 2004 22:04:27 - 1.15 +++ jasper-howto.xml 18 Sep 2004 17:09:31 - 1.16 @@ -106,6 +106,9 @@ listrongjavaEncoding/strong - Java file encoding to use for generating java source files. Default codeUTF8/code./li +listronggenStrAsCharArray/strong - Should text strings be generated as char +arrays, to improve performance in some cases? Default codefalse/code./li + listrongkeepgenerated/strong - Should we keep the generated Java source code for each page instead of deleting it? codetrue/code or codefalse/code, default codetrue/code./li @@ -135,19 +138,10 @@ ul listrongdevelopment/strong - To disable on access checks for JSP pages compilation set this to codefalse/code./li -listrongfork/strong - The internal JVM javac compiler used by Ant -has a known memory leak. And Ant requires that java compiles be synchronized, -i.e. only one JSP page can be compiled at a time. Set fork to -codetrue/code or do not define it (it is the default value) so that Ant -compiles JSP pages in a seperate JVM. -This removes the synchronization of JSP page compiles and prevents -all the javac classes from being instantiated and subsequently garbage -collected by the JVM Tomcat is running in. This also works around known -issues with javac, including memory leaking, as well as JAR file locking -on Windows./li -listrongreloading/strong - To disable background compilation of JSP -pages, which uses one thread per web application, set this to -codefalse/code./li +listronggenStrAsCharArray/strong - To generate slightly more efficient +char arrays, set this to codetrue/code./li +listrongtrimSpaces/strong - To remove useless bytes from the response, +set this to codetrue/code./li /ul /p - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cvs commit: jakarta-tomcat-catalina/webapps/docs jasper-howto.xml
markt 2004/06/18 16:49:21 Modified:webapps/docs jasper-howto.xml Log: Fix bug 23880. Correct ant path - Patch provided by Ben Kelley - Ported from TC4 Revision ChangesPath 1.14 +1 -1 jakarta-tomcat-catalina/webapps/docs/jasper-howto.xml Index: jasper-howto.xml === RCS file: /home/cvs/jakarta-tomcat-catalina/webapps/docs/jasper-howto.xml,v retrieving revision 1.13 retrieving revision 1.14 diff -u -r1.13 -r1.14 --- jasper-howto.xml 17 Mar 2004 00:09:22 - 1.13 +++ jasper-howto.xml 18 Jun 2004 23:49:21 - 1.14 @@ -228,7 +228,7 @@ (replacing the tokens with the Tomcat base path and the path to the webapp which should be precompiled):br/ source -$ANT_HOME/ant -Dtomcat.home=lt;$TOMCAT_HOMEgt; -Dwebapp.path=lt;$WEBAPP_PATHgt; +$ANT_HOME/bin/ant -Dtomcat.home=lt;$TOMCAT_HOMEgt; -Dwebapp.path=lt;$WEBAPP_PATHgt; /source /p - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cvs commit: jakarta-tomcat-catalina/webapps/docs jasper-howto.xml
markt 2004/03/16 16:09:22 Modified:webapps/docs jasper-howto.xml Log: Remove reference to unsupported largefile option. Revision ChangesPath 1.13 +0 -4 jakarta-tomcat-catalina/webapps/docs/jasper-howto.xml Index: jasper-howto.xml === RCS file: /home/cvs/jakarta-tomcat-catalina/webapps/docs/jasper-howto.xml,v retrieving revision 1.12 retrieving revision 1.13 diff -u -r1.12 -r1.13 --- jasper-howto.xml 19 Dec 2003 18:58:51 - 1.12 +++ jasper-howto.xml 17 Mar 2004 00:09:22 - 1.13 @@ -108,10 +108,6 @@ code for each page instead of deleting it? codetrue/code or codefalse/code, default codetrue/code./li -listronglargefile/strong - Should we store the static content of JSP -pages in external data files, to reduce the size of the generated servlets? -codetrue/code or codefalse/code, default codefalse/code./li - listrongmappedfile/strong - Should we generate static content with one print statement per input line, to ease debugging? codetrue/code or codefalse/code, default codetrue/code./li - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cvs commit: jakarta-tomcat-catalina/webapps/docs jasper-howto.xml
remm2003/12/19 10:58:51 Modified:webapps/docs jasper-howto.xml Log: - Use development mode by default: mappedFile is now true. Revision ChangesPath 1.12 +1 -1 jakarta-tomcat-catalina/webapps/docs/jasper-howto.xml Index: jasper-howto.xml === RCS file: /home/cvs/jakarta-tomcat-catalina/webapps/docs/jasper-howto.xml,v retrieving revision 1.11 retrieving revision 1.12 diff -u -r1.11 -r1.12 --- jasper-howto.xml 17 Nov 2003 07:50:12 - 1.11 +++ jasper-howto.xml 19 Dec 2003 18:58:51 - 1.12 @@ -114,7 +114,7 @@ listrongmappedfile/strong - Should we generate static content with one print statement per input line, to ease debugging? -codetrue/code or codefalse/code, default codefalse/code./li +codetrue/code or codefalse/code, default codetrue/code./li listrongreloading/strong - Should Jasper check for modified JSPs? codetrue/code or codefalse/code, default codetrue/code./li - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cvs commit: jakarta-tomcat-catalina/webapps/docs jasper-howto.xml
remm2003/11/16 23:50:12 Modified:webapps/docs jasper-howto.xml Log: - Fix JSPC classpath. Revision ChangesPath 1.11 +6 -0 jakarta-tomcat-catalina/webapps/docs/jasper-howto.xml Index: jasper-howto.xml === RCS file: /home/cvs/jakarta-tomcat-catalina/webapps/docs/jasper-howto.xml,v retrieving revision 1.10 retrieving revision 1.11 diff -u -r1.10 -r1.11 --- jasper-howto.xml 15 Nov 2003 10:55:01 - 1.10 +++ jasper-howto.xml 17 Nov 2003 07:50:12 - 1.11 @@ -167,6 +167,9 @@ lt;taskdef classname=org.apache.jasper.JspC name=jasper2 gt; lt;classpath id=jspc.classpathgt; lt;pathelement location=${java.home}/../lib/tools.jar/gt; +lt;fileset dir=${tomcat.home}/bingt; + lt;include name=*.jar/gt; +lt;/filesetgt; lt;fileset dir=${tomcat.home}/server/libgt; lt;include name=*.jar/gt; lt;/filesetgt; @@ -207,6 +210,9 @@ lt;fileset dir=${tomcat.home}/shared/libgt; lt;include name=*.jar/gt; lt;/filesetgt; +lt;fileset dir=${tomcat.home}/bingt; + lt;include name=*.jar/gt; +lt;/filesetgt; lt;/classpathgt; lt;include name=** /gt; lt;exclude name=tags/** /gt; - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cvs commit: jakarta-tomcat-catalina/webapps/docs jasper-howto.xml
remm2003/11/15 02:55:01 Modified:webapps/docs jasper-howto.xml Log: - Add trimSpaces doc. Revision ChangesPath 1.10 +3 -0 jakarta-tomcat-catalina/webapps/docs/jasper-howto.xml Index: jasper-howto.xml === RCS file: /home/cvs/jakarta-tomcat-catalina/webapps/docs/jasper-howto.xml,v retrieving revision 1.9 retrieving revision 1.10 diff -u -r1.9 -r1.10 --- jasper-howto.xml 19 Aug 2003 00:20:02 - 1.9 +++ jasper-howto.xml 15 Nov 2003 10:55:01 - 1.10 @@ -122,6 +122,9 @@ listrongscratchdir/strong - What scratch directory should we use when compiling JSP pages? Default is the work directory for the current web application./li + +listrongtrimSpaces/strong - Should white spaces in template text between +actions or directives be trimmed ?, default codefalse/code./li /ul /p - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cvs commit: jakarta-tomcat-catalina/webapps/docs jasper-howto.xml
yoavs 2003/08/18 17:20:02 Modified:webapps/docs jasper-howto.xml Log: Removed logVerbosityLevel. Revision ChangesPath 1.9 +0 -5 jakarta-tomcat-catalina/webapps/docs/jasper-howto.xml Index: jasper-howto.xml === RCS file: /home/cvs/jakarta-tomcat-catalina/webapps/docs/jasper-howto.xml,v retrieving revision 1.8 retrieving revision 1.9 diff -u -r1.8 -r1.9 --- jasper-howto.xml 12 Mar 2003 09:49:10 - 1.8 +++ jasper-howto.xml 19 Aug 2003 00:20:02 - 1.9 @@ -112,11 +112,6 @@ pages in external data files, to reduce the size of the generated servlets? codetrue/code or codefalse/code, default codefalse/code./li -listronglogVerbosityLevel/strong - The level of detailed messages to be -produced by this servlet. Increasing levels cause the generation of more -messages. Valid values are codeFATAL, ERROR, WARNING, INFORMATION,/code -and codeDEBUG/code. Default codeWARNING/code./li - listrongmappedfile/strong - Should we generate static content with one print statement per input line, to ease debugging? codetrue/code or codefalse/code, default codefalse/code./li - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cvs commit: jakarta-tomcat-catalina/webapps/docs jasper-howto.xml
remm2003/03/12 01:49:10 Modified:webapps/docs jasper-howto.xml Log: - Docs enhancement. Revision ChangesPath 1.8 +10 -43jakarta-tomcat-catalina/webapps/docs/jasper-howto.xml Index: jasper-howto.xml === RCS file: /home/cvs/jakarta-tomcat-catalina/webapps/docs/jasper-howto.xml,v retrieving revision 1.7 retrieving revision 1.8 diff -u -r1.7 -r1.8 --- jasper-howto.xml 7 Mar 2003 11:10:06 - 1.7 +++ jasper-howto.xml 12 Mar 2003 09:49:10 - 1.8 @@ -16,17 +16,17 @@ section name=Table of Contents p a href=#IntroductionIntroduction/abr / -a href=#UpgradingUpgrading/abr / a href=#ConfigurationConfiguration/abr / a href=#Production ConfigurationProduction Configuration/abr / +a href=#Web Application CompilationWeb Application Compilation/abr / a href=#Using JikesUsing Jikes/abr / /p /section section name=Introduction -pStarting with Tomcat 4.1, Tomcat uses the Jasper 2 JSP Engine to implement -the a href=http://java.sun.com/products/jsp/;JavaServer Pages 1.2/a +pTomcat 5.0 uses the Jasper 2 JSP Engine to implement +the a href=http://java.sun.com/products/jsp/;JavaServer Pages 2.0/a specification./p pJasper 2 has been redesigned to significantly improve performance over @@ -56,23 +56,6 @@ /section -section name=Upgrading - -pUpgrading to Tomcat 4.1 and Jasper 2 from an earlier version of -Tomcat and/or Jasper./p - -pJasper 2 generates different java source code from Jasper 1. You -must remove all previous class files generated for your JSP pages -from your codework/code directory./p - -pJasper 2 implements JSP Custom Tag Pooling. This can cause -JSP custom tags which are not compliant with the JSP specification to fail -or behave inconsistently. When upgrading from a version of Tomcat earlier -than 4.1 you should test to make sure your JSP pages which use custom tags -are working correctly./p - -/section - section name=Configuration pBy default Jasper is configured for use when doing web application @@ -171,28 +154,9 @@ /section -section name=Production Configuration - -pWhen using Jasper 2 in a production Tomcat server you should consider -making the following changes from the default configuration. -ul -listrongdevelopment/strong - To enable background compilation of JSP -pages set this to codefalse/code./li -listrongfork/strong - The internal JVM javac compiler used by Ant -has a known memory leak. And Ant requires that java compiles be synchronized, -i.e. only one JSP page can be compiled at a time. Set fork to -codetrue/code so that Ant compiles JSP pages in a seperate JVM. -This removes the synchronization of JSP page compiles and prevents -all the javac classes from being instantiated and subsequently garbage -collected by the JVM Tomcat is running in./li -/ul -/p - -/section - -section name=Web application precompilation +section name=Web Application Compilation -pUsing Ant is the preferred way to precompile web applications. +pUsing Ant is the preferred way to compile web applications using JSPC. Use the script given below to precompile a webapp: /p @@ -215,7 +179,6 @@ lt;/taskdefgt; lt;jasper2 - compile=false validateXml=false uriroot=${webapp.path} webXmlFragment=${webapp.path}/WEB-INF/generated_web.xml @@ -275,7 +238,11 @@ descriptor. Insert the code${webapp.path}/WEB-INF/generated_web.xml/code at the right place inside the code${webapp.path}/WEB-INF/web.xml/code file. Restart the web application (using the manager) and test it to verify it is -running fine with precompiled servlets. +running fine with precompiled servlets. An appropriate token placed in the +web application deployment descriptor may also be used to automatically +insert the generated servlet declarations and mappings using Ant filtering +capabilities. This is actually how all the webapps distributed with Tomcat +are automatically compiled as part of the build process. /p /section - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cvs commit: jakarta-tomcat-catalina/webapps/docs jasper-howto.xml
remm2003/03/07 02:53:47 Modified:webapps/docs jasper-howto.xml Log: - Add documentation on precompilation. Revision ChangesPath 1.6 +109 -0jakarta-tomcat-catalina/webapps/docs/jasper-howto.xml Index: jasper-howto.xml === RCS file: /home/cvs/jakarta-tomcat-catalina/webapps/docs/jasper-howto.xml,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- jasper-howto.xml 15 Jan 2003 03:40:43 - 1.5 +++ jasper-howto.xml 7 Mar 2003 10:53:47 - 1.6 @@ -171,6 +171,115 @@ /section +section name=Production Configuration + +pWhen using Jasper 2 in a production Tomcat server you should consider +making the following changes from the default configuration. +ul +listrongdevelopment/strong - To enable background compilation of JSP +pages set this to codefalse/code./li +listrongfork/strong - The internal JVM javac compiler used by Ant +has a known memory leak. And Ant requires that java compiles be synchronized, +i.e. only one JSP page can be compiled at a time. Set fork to +codetrue/code so that Ant compiles JSP pages in a seperate JVM. +This removes the synchronization of JSP page compiles and prevents +all the javac classes from being instantiated and subsequently garbage +collected by the JVM Tomcat is running in./li +/ul +/p + +/section + +section name=Web application precompilation + +pUsing Ant is the preferred way to precompile web applications. +Use the script given below to precompile a webapp: +/p + +p +source +lt;project name=Webapp Precompilation default=all basedir=.gt; + + lt;target name=jspcgt; + +lt;taskdef classname=org.apache.jasper.JspC name=jasper2 gt; + lt;classpath id=jspc.classpathgt; +lt;pathelement location=${java.home}/../lib/tools.jar/gt; +lt;fileset dir=${tomcat.home}/server/libgt; + lt;include name=*.jar/gt; +lt;/filesetgt; +lt;fileset dir=${tomcat.home}/common/libgt; + lt;include name=*.jar/gt; +lt;/filesetgt; + lt;/classpathgt; +lt;/taskdefgt; + +lt;jasper2 + compile=false + validateXml=false + uriroot=${webapp.path} + webXmlFragment=${webapp.path}/WEB-INF/generated_web.xml + outputDir=${webapp.path}/WEB-INF/src /gt; + + lt;/targetgt; + + lt;target name=compilegt; + +lt;mkdir dir=${webapp.path}/WEB-INF/classes/gt; +lt;mkdir dir=${webapp.path}/WEB-INF/lib/gt; + +lt;javac destdir=${webapp.path}/WEB-INF/classes + optimize=off + debug=on failonerror=false + srcdir=${webapp.path}/WEB-INF/src +excludes=**/*.smapgt; + lt;classpathgt; +lt;pathelement location=${webapp.path}/WEB-INF/classes/gt; +lt;fileset dir=${webapp.path}/WEB-INF/libgt; + lt;include name=*.jar/gt; +lt;/filesetgt; +lt;pathelement location=${tomcat.home}/common/classes/gt; +lt;fileset dir=${tomcat.home}/common/libgt; + lt;include name=*.jar/gt; +lt;/filesetgt; +lt;pathelement location=${tomcat.home}/shared/classes/gt; +lt;fileset dir=${tomcat.home}/shared/libgt; + lt;include name=*.jar/gt; +lt;/filesetgt; + lt;/classpathgt; + lt;include name=** /gt; + lt;exclude name=tags/** /gt; +lt;/javacgt; + + lt;/targetgt; + + lt;target name=all depends=jspc,compilegt; + lt;/targetgt; + +lt;/projectgt; +/source +/p + +p +The following command line can be used to run the script +(replacing the tokens with the Tomcat base path and the path to the webapp +which should be precompiled):br/ +source +$ANT_HOME/ant.sh -Dtomcat.home=lt;$TOMCAT_HOMEgt; -Dwebapp.path=lt;$WEBAPP_PATHgt; +/source +/p + +p +Then, the declarations and mappings for the servlets which were generated +during the precompilation must be added to the web application deployment +descriptor. Insert the code${webapp.path}/WEB-INF/generated_web.xml/code +at the right place inside the code${webapp.path}/WEB-INF/web.xml/code file. +Restart the web application (using the manager) and test it to verify it is +running fine with precompiled servlets. +/p + +/section + section name=Using Jikes pIf you wish to use - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cvs commit: jakarta-tomcat-catalina/webapps/docs jasper-howto.xml
remm2003/03/07 03:10:06 Modified:webapps/docs jasper-howto.xml Log: - No .sh. Revision ChangesPath 1.7 +1 -1 jakarta-tomcat-catalina/webapps/docs/jasper-howto.xml Index: jasper-howto.xml === RCS file: /home/cvs/jakarta-tomcat-catalina/webapps/docs/jasper-howto.xml,v retrieving revision 1.6 retrieving revision 1.7 diff -u -r1.6 -r1.7 --- jasper-howto.xml 7 Mar 2003 10:53:47 - 1.6 +++ jasper-howto.xml 7 Mar 2003 11:10:06 - 1.7 @@ -265,7 +265,7 @@ (replacing the tokens with the Tomcat base path and the path to the webapp which should be precompiled):br/ source -$ANT_HOME/ant.sh -Dtomcat.home=lt;$TOMCAT_HOMEgt; -Dwebapp.path=lt;$WEBAPP_PATHgt; +$ANT_HOME/ant -Dtomcat.home=lt;$TOMCAT_HOMEgt; -Dwebapp.path=lt;$WEBAPP_PATHgt; /source /p - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cvs commit: jakarta-tomcat-catalina/webapps/docs jasper-howto.xml
remm2003/01/01 07:26:34 Modified:webapps/docs jasper-howto.xml Log: - Due to continued problems with javac, I think fork should default to true. Revision ChangesPath 1.4 +6 -3 jakarta-tomcat-catalina/webapps/docs/jasper-howto.xml Index: jasper-howto.xml === RCS file: /home/cvs/jakarta-tomcat-catalina/webapps/docs/jasper-howto.xml,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- jasper-howto.xml 31 Dec 2002 14:48:44 - 1.3 +++ jasper-howto.xml 1 Jan 2003 15:26:34 - 1.4 @@ -116,7 +116,7 @@ listrongfork/strong - Have Ant fork JSP page compiles so they are performed in a seperate JVM from Tomcat? codetrue/code or -codefalse/code, default codefalse/code./li +codefalse/code, default codetrue/code./li listrongjavaEncoding/strong - Java file encoding to use for generating java source files. Default codeUTF8/code./li @@ -159,10 +159,13 @@ listrongfork/strong - The internal JVM javac compiler used by Ant has a known memory leak. And Ant requires that java compiles be synchronized, i.e. only one JSP page can be compiled at a time. Set fork to -codetrue/code so that Ant compiles JSP pages in a seperate JVM. +codetrue/code or do not define it (it is the default value) so that Ant +compiles JSP pages in a seperate JVM. This removes the synchronization of JSP page compiles and prevents all the javac classes from being instantiated and subsequently garbage -collected by the JVM Tomcat is running in./li +collected by the JVM Tomcat is running in. This also works around known +issues with javac, including memory leaking, as well as JAR file locking +on Windows./li /ul /p -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
cvs commit: jakarta-tomcat-catalina/webapps/docs jasper-howto.xml
glenn 2002/12/31 06:12:32 Modified:catalina/src/conf web.xml webapps/docs jasper-howto.xml Log: Implement new Ant javac fork option. If set to true Ant forks a new process to compile JSP pages and does it without synchronization. Default is false. Revision ChangesPath 1.10 +4 -0 jakarta-tomcat-catalina/catalina/src/conf/web.xml Index: web.xml === RCS file: /home/cvs/jakarta-tomcat-catalina/catalina/src/conf/web.xml,v retrieving revision 1.9 retrieving revision 1.10 diff -u -r1.9 -r1.10 --- web.xml 28 Dec 2002 01:39:38 - 1.9 +++ web.xml 31 Dec 2002 14:12:31 - 1.10 @@ -111,6 +111,10 @@ !-- enablePooling Determines whether tag handler pooling is -- !-- enabled [true]-- !-- -- + !-- forkTell Ant to fork compiles of JSP pages so that -- + !-- a separate JVM is used for JSP page compiles -- + !-- from the one Tomcat is running in. [false] -- + !-- -- !-- ieClassId The class-id value to be sent to Internet -- !-- Explorer when using jsp:plugin tags. -- !-- [clsid:8AD9C840-044E-11D1-B3E9-00805F499D93] -- 1.2 +11 -3 jakarta-tomcat-catalina/webapps/docs/jasper-howto.xml Index: jasper-howto.xml === RCS file: /home/cvs/jakarta-tomcat-catalina/webapps/docs/jasper-howto.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- jasper-howto.xml 16 Nov 2002 14:59:07 - 1.1 +++ jasper-howto.xml 31 Dec 2002 14:12:31 - 1.2 @@ -114,6 +114,10 @@ Explorer when using lt;jsp:plugingt; tags. Default codeclsid:8AD9C840-044E-11D1-B3E9-00805F499D93/code./li +listrongfork/strong - Have Ant fork JSP page compiles so they are +performed in a seperate JVM from Tomcat? codetrue/code or +codefalse/code, default codefalse/code./li + listrongjavaEncoding/strong - Java file encoding to use for generating java source files. Default codeUTF8/code./li @@ -152,9 +156,13 @@ ul listrongdevelopment/strong - To enable background compilation of JSP pages set this to codefalse/code./li -listrongcompiler/strong - The internal JVM javac compiler used by Ant -has a known memory leak. If you anticipate that JSP pages will get recompiled -frequently consider using an external compiler such as codejikes/code./li +listrongfork/strong - The internal JVM javac compiler used by Ant +has a known memory leak. And Ant requires that java compiles be synchronized, +i.e. only one JSP page can be compiled at a time. Set fork to +codetrue/code so that Ant compiles JSP pages in a seperate JVM. +This removes the synchronization of JSP page compiles and prevents +all the javac classes from being instantiated and subsequently garbage +collected by the JVM Tomcat is running in./li /ul /p -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
cvs commit: jakarta-tomcat-catalina/webapps/docs jasper-howto.xml
remm2002/12/31 06:48:44 Modified:webapps/docs jasper-howto.xml Log: - Fix typo. Revision ChangesPath 1.3 +1 -1 jakarta-tomcat-catalina/webapps/docs/jasper-howto.xml Index: jasper-howto.xml === RCS file: /home/cvs/jakarta-tomcat-catalina/webapps/docs/jasper-howto.xml,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- jasper-howto.xml 31 Dec 2002 14:12:31 - 1.2 +++ jasper-howto.xml 31 Dec 2002 14:48:44 - 1.3 @@ -162,7 +162,7 @@ codetrue/code so that Ant compiles JSP pages in a seperate JVM. This removes the synchronization of JSP page compiles and prevents all the javac classes from being instantiated and subsequently garbage -collected by the JVM Tomcat is running in./li +collected by the JVM Tomcat is running in./li /ul /p -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]