You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cactus-dev@jakarta.apache.org by bu...@apache.org on 2004/02/21 00:00:46 UTC
DO NOT REPLY [Bug 27125] New: -
servlet initialization parameters not available using config.getServletContext().getInitParameter("paramName") when testing
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=27125>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=27125
servlet initialization parameters not available using config.getServletContext().getInitParameter("paramName") when testing
Summary: servlet initialization parameters not available using
config.getServletContext().getInitParameter("paramName")
when testing
Product: Cactus
Version: 1.5
Platform: All
OS/Version: All
Status: NEW
Severity: Normal
Priority: Other
Component: Framework
AssignedTo: cactus-dev@jakarta.apache.org
ReportedBy: mkovalenko@marketswitch.com
In my test I set init parameter as
config.setInitParameter("paramName", "paramValue");
Now when I debug servlet being tested I see that in method init
config.getInitParameter("paramName") returns "paramValue"
and
config.getServletContext().getInitParameter("paramName") returns null
When you're not debugging servlet both methods works.
Am I missing something or is it a bug?
---------------------------------------------------------------------
To unsubscribe, e-mail: cactus-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: cactus-dev-help@jakarta.apache.org