<html:select property="userRole">
<c:forEach var="roles" items="${requestScope['userForm'].userRoles}">
<html:option styleId="userRoles" value="${roles.key}"><c:out value="${roles.value}"/></html:option>
</c:forEach>
</html:select>
<c:forEach var="roles" items="${requestScope['userForm'].userRoles}">
<html:option styleId="userRoles" value="${roles.key}"><c:out value="${roles.value}"/></html:option>
</c:forEach>
</html:select>
解决方案 »
- struts中关于struts.xml的配置问题
- 寻求一下这个中断http连接的解决方案
- 在bat中运行hibernate应用,请各位同仁帮忙
- 写程序的时候 突发的一个想法 结果发现自己的基础真差。。。能帮忙解释下 为什么会这样的
- Jsp excel 乱码 问题
- 请教高手!javamail或者是其他的java包访问trash folder,send folder,etc的方法。
- 我写好了个CMP,想写个程序测试看看CMP是否正确!要怎么写的?
- 最简单的rmi程序都运行不了,请大家看看
- 高分紧急求助!!!JBuilder8初始化错误。。。
- fileupload最大可上传多大的文件
- 散分,总算升级成两三角了!100分
- 如何用eclipse的ExadelStudio工具开发WEB哪个高手有例子步骤。谢谢
<html:options property="displayCntValue" labelProperty="displayCntLabel"/>
</html:select>
这个是我用的Formbean所以没用Vector或者Arraylist。如果用的话就得用标签<logic:iterate>建议多看看例子
但不知道在怎么写
<script language="Javascript">
for(i = 1900; i < 2050; i++)
{
document.write("<option value=" + i + ">" + i);
}
</script>
</select>