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());




本文标签: 下拉框