handle list of list of objects in actionForm
Hi,
In my struts application, I am getting results from database, based on my search query.
In result, I am getting set of list of objects mean set contain lists and list contain objects.
I am passing these values from my action class to jsp page using one bean class.
Now I want to pass all changed value from jsp page to my next action class using actionForm.
but problem is, How can I do. because there are set of list of objects.
pls give me suggestion.
# 1
<html:select property="allEntity" style="width: 200px">
<html:option value="Select an Entity" selected />
<html:optionsCollection property="entity" value"id" label="name" />
</html:select>
Action Form class:
private Collection entity;
private String allEntity;
public Collection getEntity() {
return entity;
}
public void setEntity(Collection entity) {
this.entity = entity;
}
entity holds all values, you can use it in the action class.
you can use below too:
String name[] = request.getParameterValues("name");
Message was edited by:
skp71
skp71a at 2007-7-12 22:47:42 >
