//server side
public ArrayList getPressSystems(){
ArrayList pressSystems = new ArrayList();
Connection con = DatabaseHelper.prepareConnection();
String query = SDCQueries.SELECT_REF_PART_PRESS_SYSTEMS;
psmt = con.prepareStatement(query);
rs = psmt.executeQuery();
while (rs.next()) {
pressSystems.add(new LabelValueBean(rs.getString(1), rs.getString(1)));
}
return pressSystems;
}
////in action class
ArrayList pressSystems =(ArrayList) searchBo.getPressSystems(estimateId);
form.setPressSystems(pressSystems);
return mapping.findForward(jsppage);
//in jsp page
<html:select name="form" property="pressSystem" size="1">
<html
ptions collection = "pressSystems" property = "value" labelproperty = "label"/>
</html:select>