ServletContext context) {
// JVM version numbers
- try {
- if (Float.parseFloat(System.getProperty("java.specification.version")) > 1.4) {
- compilerSourceVM = compilerTargetVM = "1.5";
- } else {
- compilerSourceVM = compilerTargetVM = "1.4";
- }
- } catch (NumberFormatException e) {
- // Ignore
- }
+ // - not needed, because this version of Tomcat requires at least JDK 1.5
+ // try {
+ // if (Float.parseFloat(System.getProperty("java.specification.version")) > 1.4) {
+ // compilerSourceVM = compilerTargetVM = "1.5";
+ // } else {
+ // compilerSourceVM = compilerTargetVM = "1.4";
+ // }
+ // } catch (NumberFormatException e) {
+ // // Ignore
+ // }
Enumeration<String> enumeration=config.getInitParameterNames();
while( enumeration.hasMoreElements() ) {
No default value.</li>
<li><strong>compilerSourceVM</strong> - What JDK version are the source files
-compatible with? (Default JDK 1.4)</li>
+compatible with? (Default value: <code>1.5</code>)</li>
<li><strong>compilerTargetVM</strong> - What JDK version are the generated files
-compatible with? (Default JDK 1.4)</li>
+compatible with? (Default value: <code>1.5</code>)</li>
<li><strong>development</strong> - Is Jasper used in development mode? If true,
the frequency at which JSPs are checked for modification may be specified via