Announcement Announcement Module
Collapse
No announcement yet.
Injecting String Arrays. Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Injecting String Arrays.

    Hi All,

    How to inject String arrays for a class.

    String[][] stackedRow = {
    { "row1", "value" },
    { "row2", "value2" } }

    Appreciate your help.

  • #2
    Look here[1], search on "aint," (with the comma).

    Glen

    [1] http://www.thearcmind.com/confluence...dCommentId=948

    Comment


    • #3
      double dimensional array for string.

      HI,

      How to specify the values in the configuration file for the double dimensional arrays? for a String class? the link you've specified talks about single dimensional array, do we have support in spring to do that or do we have to write our own custom class.

      -Vei

      Comment


      • #4
        Oh, sorry I didn't notice that. Hopefully others can help here--I wonder though if the syntax for single-dimensional arrays can be generalized (perhaps nested) for two-dimensional arrays to work.

        Glen

        Comment


        • #5
          You can use CSV arrays...

          This works:

          Code:
          <property name="stackedRow ">
          	<list>
          		<value>a,b,c</value>
          		<value>d,e</value>
          	</list>
          </property>
          so does this:

          Code:
          <property name="stackedRow ">
          	<list>
          		<list>
          			<value>1</value>
          			<value>2</value>
          			<value>3</value>
          		</list>
          		<value>d,e</value>
          	</list>
          </property>

          Comment


          • #6
            Works.

            It works!

            Thank You.

            Comment

            Working...
            X