This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 59316 - Enable 1.5 sources in JSPs
Summary: Enable 1.5 sources in JSPs
Status: NEW
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Tomcat (show other bugs)
Version: 4.x
Hardware: All All
: P4 blocker with 1 vote (vote)
Assignee: Petr Hejl
URL: http://www.netbeans.org/servlets/Read...
Keywords:
Depends on: 22977
Blocks:
  Show dependency tree
 
Reported: 2005-05-27 10:19 UTC by zikmund
Modified: 2007-08-30 17:37 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description zikmund 2005-05-27 10:19:56 UTC
Bundled Tomcat can be setup to support 1.5 features in JSPs. IDE could do it
automatically when user sets 1.5 Source level of WebApp. Although Tomcat using
non-jasper parser (default Tomcat configuration) doesn't have this possibility.

Notice: Running Bundled Tomcat on 1.4.x JDK with source level set to 1.5 (see
bellow) will fail all JSP compilations.

Modify TOMCAT_BASE/conf/web.xml
  <servlet>
    <servlet-name>jsp</servlet-name>
    <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
    <init-param>
      <param-name>fork</param-name>
      <param-value>false</param-value>
    </init-param>
    <init-param>
      <param-name>xpoweredBy</param-name>
      <param-value>false</param-value>
    </init-param>
+    <init-param>
+      <param-name>compilerSourceVM</param-name>
+      <param-value>1.5</param-value>
+    </init-param>
+    <init-param>
+      <param-name>compilerTargetVM</param-name>
+      <param-value>1.5</param-value>
+    </init-param>
    <init-param>
      <param-name>mappedfile</param-name>
      <param-value>true</param-value>
    </init-param>
    <load-on-startup>3</load-on-startup>
  </servlet>

Based on nbusers thread:
http://www.netbeans.org/servlets/ReadMsg?list=nbusers&msgNo=53786