Uploaded image for project: 'Cactus'
  1. Cactus
  2. CACTUS-83

Error in csv value in <init-param> in web.xml

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Incomplete
    • 1.5
    • 1.6
    • Framework
    • None
    • Operating System: Other
      Platform: PC
    • 25326

    Description

      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 ()); }

      Attachments

        Activity

          People

            vmassol Vincent Massol
            luozhinian@yahoo.com.cn Robert Luo
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: