首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > 编程 >

struct2 radio标签施用

2012-10-12 
struct2 radio标签使用struts2 radio 标签:s:radio namesex list#{1:男,0:女}/s:radio?

struct2 radio标签使用

struts2 radio 标签:

<s:radio name="sex" list="#{'1':'男','0':'女'}"></s:radio>

?

生成html代码:

<label>产品是否出售:</label><br>

<input type="radio" name="sex" id="sex1" value="1">

<label for="sex1">上架</label>

<input type="radio" name="sex" id="sex0" value="0">

<label for="sex0">下架</label>

?

如果在action中sex设值为1:

<input type="radio" name="sex" id="sex1" value="1" checked="checked">

热点排行