You could use a lazy list and a factory to create your empty person objects.
private List persons = org.apache.commons.collections.list.LazyList.decorate(new Vector(), new InstantiateFactory(Person.class));

Cheers,
Lance.

Jaan Tark wrote:
problem solved, ignore

gonna write the problem description and solution as soon as i have some extra time


rgds

On 15.05.2007 13:51, Jaan Tark wrote:
Hello,

i have a class

public class Person {
   private String name;
   // gettter, setter
}

contained in

public class Master extends ActionSupport {
     private Vector<Person> persons;

   //getters, setters
     publis String execute() {
   return SUCCESS;
   }

}

i can retrieve persons in jsp like this:
<s:iterator value="persons">
   <s:property value="name">
</s:iterator>


how to i fill the vector via URL (GET)?
(e.g. "....?persons.name=test)

if the vector contains primitive types - int, string ... , i''m able to fill it ... but having trouble with vector (collections) that contain smth like shown

rgds



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to