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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]