Here is an example:
I have a Java Bean by name Paper with the following instance variables:
int paper_id
and
String short_nm
And from some part of the code, an ArrayList having objects of the Paper bean is put in the session scope (by the name 'papers').
Now if I want to use the paper_ids of the objects in the ArrayList to populate a select box then:
<c:set var="papers" value="${sessionScope.papers}" />
<html:select size="1" property="newPaper" value="${spp.newPaper}" >
<html
ption value="0">Select Paper</html
ption>
<html
ptions collection="papers" property="paper_id" labelProperty="paper_id" />
</html:select>