!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;
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
2 matches
Mail list logo