tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 50700] New: Context parameters are being overridden with parameters from the web application deployment descriptor
Date Tue, 01 Feb 2011 18:04:21 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=50700

           Summary: Context parameters are being overridden with
                    parameters from the web application deployment
                    descriptor
           Product: Tomcat 6
           Version: 6.0.30
          Platform: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina
        AssignedTo: dev@tomcat.apache.org
        ReportedBy: dx_xb@mail.ru


Context parameters are being overridden with parameters from the web
application deployment descriptor even through "override" attribute is set to
"false"

For example:
lines from context file
<Context path="/path" docBase="/path/to/docbase" cookies="true">
    <Parameter name="parameter_name" value="test1" override="false"/>
....
</Context>

lines from web.xml
    <context-param>
        <description>default value for parameter_name</description>
        <param-name>parameter_name</param-name>
        <param-value>test2</param-value>
    </context-param>

Now servletContext.getInitParameter("parameter_name") returns "test2"

-- 
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


Mime
View raw message