You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2012/03/15 22:36:35 UTC

DO NOT REPLY [Bug 52924] New: Add support for per-application JSP compile configuration in Tomcat 6, 7

https://issues.apache.org/bugzilla/show_bug.cgi?id=52924

             Bug #: 52924
           Summary: Add support for per-application JSP compile
                    configuration in Tomcat 6, 7
           Product: Tomcat 6
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Jasper
        AssignedTo: dev@tomcat.apache.org
        ReportedBy: nicholas@nicholaswilliams.net
    Classification: Unclassified


Created attachment 28477
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=28477
Sample tomcat-web.xml file, similar to glassfish-web.xml file

Some of the more popular application servers (GlassFish, WebLogic and
WebSphere) provide easy methods for controlling JSP configuration parameters on
a per-application basis.

Tomcat 7, for example, can run on Java 7, but the default JSP compile level is
1.6, and in order to support compiling JSPs for Java 7, you have to change the
value of compileSourceVM and compileTargetVM for the entire server in
$CATALINA_BASE/conf/web.xml (affects everything) or redeclare the JspServlet in
your web.xml file (not portable to other application servers).

I propose a tomcat-web.xml file specification (similar to GlassFish 3.x's
glassfish-web.xml file specification) that enables configuration of certain
Tomcat-specific application properties. We can start off with just a few
options and over time could make Tomcat much more powerful as we find other
options to put in there.

I propose that the first setting supported in this file be a JSP compile level
(1.5, 1.6, 1.7, etc.).

I propose that the second setting supported be the ability to precompile JSPs
on application startup (a feature not currently supported without significant
configuration/work).

I have attached a sample tomcat-web.xml file that could potentially be used
(very similar to GlassFish equivalent).

It would be great if this could be added to Tomcat 6 AND Tomcat 7, but if
Tomcat 6 is out of the question, go ahead and move this enhancement suggestion
to Tomcat 7.

Maybe possible is that it supports only the JSP language level in Tomcat 6 and
supports more in Tomcat 7?

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org