Announcement Announcement Module
Collapse
No announcement yet.
Map containing List of values in Spring xml Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Map containing List of values in Spring xml

    Hi,
    i want to populate a map with containing a list of values through Spring IOC.
    But it is showing error as "The Content of element type "value" must match "null."

    Below mentioned XML displays the format of it:

    <property name="allbrandRegionsLocaleMap">
    <map>
    <entry key="1">
    <value><property name="locale">
    <list>
    <value>en</value>
    <value>es</value>
    </list>

    </property>
    </value>

    </entry>


    </map>
    </property>

    Can you please help

  • #2
    Please use [ code][/code ] tags when posting.

    Obviously that is never going to work...

    Of which object you are going to set the property named locale?! Your construct is completly wrong.

    Code:
    <map>
    	<entry key="1">
    		<value>
    			<list>
    				<value>en</value>
    				<value>es</value>
    			</list>
    		</value>
    	</entry>
    </map>

    Comment


    • #3
      You might want to look at the documentation for the <util:map /> element.

      Comment

      Working...
      X