R
Rich
I am trying to populate a s:select drop down using a list. I am new
to all of this so I am having some trouble.
There is a example for populating a select using a list on this page:
http://struts.apache.org/2.0.8/docs/select.html
I was wondering what:
list="petDao.pets"
listKey="id"
listValue="name"
are referring to?
Is petDao a java bean? Is it an action? How do you set it up on the
page? What is pets? Does it refer to petDao.getPets? what does it
return? What do id and name refer to? Does getPets return a list of
objects that contain the fields name and id which have the getters and
setters for those fields?
Sorry if this is posted in the wrong forum. This is the only group I
found when I searched for struts 2.
to all of this so I am having some trouble.
There is a example for populating a select using a list on this page:
http://struts.apache.org/2.0.8/docs/select.html
I was wondering what:
list="petDao.pets"
listKey="id"
listValue="name"
are referring to?
Is petDao a java bean? Is it an action? How do you set it up on the
page? What is pets? Does it refer to petDao.getPets? what does it
return? What do id and name refer to? Does getPets return a list of
objects that contain the fields name and id which have the getters and
setters for those fields?
Sorry if this is posted in the wrong forum. This is the only group I
found when I searched for struts 2.