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 39795] New: - ServletContext.getInitParameter() is null after jsp has been recompiled
Date Tue, 13 Jun 2006 07:55:41 GMT
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: tomcat-dev@jakarta.apache.org
        ReportedBy: morten@nobel-joergensen.com


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: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message