DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=39795>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=39795

           Summary: ServletContext.getInitParameter() is null after jsp has
                    been recompiled
           Product: Tomcat 5
           Version: 5.5.17
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Jasper
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]


A have set a context parameter in the server.xml

[...] <host>
[...]   <Context path="/somewebapp">
           <Parameter name="realm_id" value="1" />
[...]

In the jsp I get the parameter by 

<%
        String realmId = getServletContext().getInitParameter("realm_id");
%>

This works ok, but when the jsp page are modified and recompiled, the parameter
is null.

Instaid of getServletContext() I have also used the application attribute, but
with the same result.

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

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to