Solved

List of Lists in Spring XML

Posted on 2009-06-29
1
461 Views
Last Modified: 2013-11-11
I'm trying to use spring xml to create a list of lists. What is the proper syntax for this?

Java: 

List<List<String>> alternatePrimaryKeys;

public List<List<String>> getAlternatePrimaryKeys() {

  return this.alternatePrimaryKeys;

}
 

public void setAlternatePrimaryKeys(List<List<String>> alternatePrimaryKeys) {

  this.alternatePrimaryKeys = alternatePrimaryKeys;

}
 

Non-Working Spring XML:

<property name="alternatePrimaryKeys">

  <list>				

    <list>

      <value>componentName</value>

      <value>propertyName</value>

    </list>			

  </list>

</property>

Open in new window

0
Comment
Question by:Xidos
1 Comment
 

Accepted Solution

by:
Xidos earned 0 total points
ID: 24737134
The code snippet for the xml is fine. My test framework wasn't properly configured.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
nested interface 5 45
maven project clean install and build and adding as war web plugin 4 47
Which is the latest version of Apache Tomcatl 3 51
mockito example issue 8 64
I had a project requirement for a displaying a user workbench .This workbench would consist multiple data grids .In each grid the user will be able to see a large number of data. These data grids should allow the user to 1. Sort 2. Export the …
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now