I'm currently trying to migrate my project from struts to spring MVC. Simple things were very easy to port, but I've problem with more advanced topics.

My first problem is how can I bind indexed properties in spring. I've read in documentation that's possible but can't find any example how to do this.

My second question is if is there possible to bind 'indexed' (I know, Set has no order) properties to java.uti.Set. Suppose I have beans

public class Foo {
Set bars;
}

public class Bar {
boolean valid;
}

How can I bind values of Set ('dynamically')? Of course i can always do it myself in onBind - but I wonder if there is maybe something embedded in spring which does it already.

Artur