Bug 34272

Summary: Patch to externalize the JspServlet Options implementation
Product: Tomcat 5 Reporter: Scott M Stark <starksm>
Component: JasperAssignee: Tomcat Developers Mailing List <dev>
Status: RESOLVED FIXED    
Severity: enhancement    
Priority: P2    
Version: 5.5.9   
Target Milestone: ---   
Hardware: Other   
OS: other   
Attachments: Patch for engineOptionsClass option patch

Description Scott M Stark 2005-04-02 08:23:35 UTC
Options like the tld cache cannot be set via external configuration. The
attached patch allows the org.apache.jasper.Options implementation used by the
JspServlet to be set via an engineOptionsClass parameter:

    <servlet>
        <servlet-name>jsp</servlet-name>
        <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
...
        <init-param>
            <param-name>engineOptionsClass</param-name>
           
<param-value>org.jboss.web.tomcat.tc5.jasper.JspServletOptions</param-value>
        </init-param>
        <load-on-startup>3</load-on-startup>
    </servlet>
Comment 1 Scott M Stark 2005-04-02 08:25:37 UTC
Created attachment 14608 [details]
Patch for engineOptionsClass option patch
Comment 2 Remy Maucherat 2005-04-04 00:52:04 UTC
It seems to add the original intended behavior of allowing plugging the options.
I'll commit your patch tomorrow.
Comment 3 Remy Maucherat 2005-04-05 11:59:07 UTC
I have applied the patch.