tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@apache.org
Subject svn commit: r405436 - /tomcat/tc6.0.x/trunk/java/org/apache/catalina/core/StandardContext.java
Date Tue, 09 May 2006 14:02:03 GMT
Author: remm
Date: Tue May  9 07:02:01 2006
New Revision: 405436

URL: http://svn.apache.org/viewcvs?rev=405436&view=rev
Log:
- Pass the ignore annotation flag to Jasper.

Modified:
    tomcat/tc6.0.x/trunk/java/org/apache/catalina/core/StandardContext.java

Modified: tomcat/tc6.0.x/trunk/java/org/apache/catalina/core/StandardContext.java
URL: http://svn.apache.org/viewcvs/tomcat/tc6.0.x/trunk/java/org/apache/catalina/core/StandardContext.java?rev=405436&r1=405435&r2=405436&view=diff
==============================================================================
--- tomcat/tc6.0.x/trunk/java/org/apache/catalina/core/StandardContext.java (original)
+++ tomcat/tc6.0.x/trunk/java/org/apache/catalina/core/StandardContext.java Tue May  9 07:02:01
2006
@@ -4235,6 +4235,14 @@
         // Binding thread
         oldCCL = bindThread();
 
+        // Set annotation processing parameter for Jasper (unfortunately, since
+        // this can be configured in many places and not just in /WEB-INF/web.xml,
+        // there are not many solutions)
+        if (ignoreAnnotations) {
+            Wrapper jspServlet = (Wrapper) findChild(Constants.JSP_SERVLET_NAME);
+            jspServlet.addInitParameter("org.apache.jasper.IGNORE_ANNOTATIONS", "true");
+        }
+        
         try {
             
             // Create context attributes that will be required



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


Mime
View raw message