Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-3511

struts.devMode never set to true and never injected

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Invalid
    • Affects Version/s: 2.2.1
    • Fix Version/s: None
    • Component/s: XML Configuration
    • Labels:
      None

      Description

      I add this to my struts.xml file:

      <constant name="struts.devMode" value="true" />

      but it has no effect. In org.apache.struts2.config.BeanSelectionProvider.register(), props.getProperty(StrutsConstants.STRUTS_DEVMODE) returns "false". In ParametersInterceptor, setDevMode() is never called. When I change ParametersInterceptor.setDevMode() to not be static, it is called, but the value passed is "false".

        Attachments

        1. WW-35111-1.patch
          2 kB
          Maurizio Cucchiara
        2. WW-3511.patch
          1 kB
          Maurizio Cucchiara

          Activity

            People

            • Assignee:
              lukaszlenart Lukasz Lenart
              Reporter:
              jafl5272 John Lindal
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: