Peter and Santosh,
Here is an example that I use to do the same thing:
My Action Class:
public class ListBillingCodeAction extends Action
{
public ActionForward execute(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response)
throws Exception
{
// retrieve billing codes (List)
BillingCodeManager manager = new BillingCodeManager();
// add the list of the request var (expose to jsp)
request.setAttribute("dataList", manager.recallAll());
// return success
return mapping.findForward("success");
}
}
Fragment from my JSP
<html:select property="intBillingCodeID" name="destBean">
<html:optionsCollection name="dataList" label="strBillingCode"
value="intBillingCodeID" />
</html:select>
I hope this helps..
-Corey
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]