admin管理员组文章数量:1319455
下拉框
1.第一种下拉框:
<s:select list="{'utf-8','gbk','Unicode','gb2312'}" name="charset" headerKey="-1" headerValue="--请选择--"/>
2.第二种下拉框
<s:select list="#{0:'不需要',1:'需要'}" name="needKeyword" headerKey="-1" headerValue="--请选择--"/>
3.第三种下拉框
<s:select list="#allTags" name="baseQuery.tagId" listKey="id" listValue="mc" headerKey="-1" headerValue="--请选择--"/>
注意第三种,要将放在Contenxt中(struts2):
ActionContext.getContext().put("allTags", tagService.getAll());
本文标签: 下拉框
版权声明:本文标题:下拉框 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1687070634a60674.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论