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 2003/12/08 16:08:45 UTC
DO NOT REPLY [Bug 25326] New: -
Error in csv value in in web.xml
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=25326>.
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=25326
Error in csv value in <init-param> in web.xml
Summary: Error in csv value in <init-param> in web.xml
Product: Cactus
Version: 1.5
Platform: PC
OS/Version: Other
Status: NEW
Severity: Normal
Priority: Other
Component: Framework
AssignedTo: cactus-dev@jakarta.apache.org
ReportedBy: luozhinian@yahoo.com.cn
in web.xml, we add csv value for one param, config is as follows:
<servlet>
<servlet-name>ServletRedirector</servlet-name>
<servlet-class>org.apache.cactus.server.ServletTestRedirector</servlet-
class>
<init-param>
<param-name>param1</param-name>
<param-value>value1 used for testing, csv value</param-value>
</init-param>
</servlet>
I failed in running org.apache.cactus.sample.TestSampleServletConfig, code is
as follows:
public void testServletConfig() throws ServletException
{
SampleServletConfig servlet = new SampleServletConfig();
// VERY IMPORTANT : Call the init() method in order to initialize the
// Servlet ServletConfig object.
servlet.init(config);
assertEquals("value1 used for testing, csv value", servlet.getConfigData
());
}
---------------------------------------------------------------------
To unsubscribe, e-mail: cactus-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: cactus-dev-help@jakarta.apache.org