ITeye博客

struts2 的标签

slikel · 2012-09-04 10:50 · struts2 · 编程语言 · Markdown

1、struts中的radio

<s:radio theme="simple" list="#{'true':'是','false':'否'}" name="bean.status"></s:radio>

 

2、struts中的select

<s:select list="ctmlList" name="ctmlName" listKey="key" listValue="value" theme="simple"/>

    该标签中的ctmlList在存放的数据类型是一个简单的bean,该bean中有两个属性,String key,  String value

     

<s:select list="#{‘hubei’:'湖北','shandong':'山东'}" name="ctmlName" listKey="key" listValue="value" theme="simple"/>

    这种是在页面上直接构造一个下拉选

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。