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

The current struts-default.xml prevents TypeConverter wiring

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.0.6
    • 2.0.7, 2.1.0
    • XML Configuration
    • None
    • struts 2.0.6, xwork 2.0.1, spring-plugin 2.0.5

    • Patch

    Description

      Due to the apparition order in struts-default, the XWorkConverter is created before the container and this prevent any auto-wiring at converter's level.

      Current order (struts-default.xml, line 46-47)
      <bean class="com.opensymphony.xwork2.util.XWorkConverter" static="true" />
      <bean class="com.opensymphony.xwork2.ObjectFactory" static="true" />

      It should be in that order
      <bean class="com.opensymphony.xwork2.ObjectFactory" static="true" />
      <bean class="com.opensymphony.xwork2.util.XWorkConverter" static="true" />

      Attachments

        Activity

          People

            Unassigned Unassigned
            nberthet Nicolas Berthet
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: