Re: Struggling with html:options

2003-07-09 Thread sjones
!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN %@ taglib uri=/WEB-INF/struts-html.tld prefix=html % %@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean % html:html HEAD %@ page language=java import= com.ubs.directory.common.DirectoryEqualityOperator, java.util.* contentType=text/html;

RE: Struggling with html:options

2003-07-09 Thread James Childers
Try this. In your Action: ArrayList months = new ArrayList(); months.add(new LabelValueBean(January, 1); months.add(new LabelValueBean(Februrary, 2); request.setAttribute(months, months); In your JSP: html:select property=yourFormProperty html:options collection=months property=value