龙珠直播多妍所有视频:怎样设置struts中<html:select><html:radio>标签的默认选中项

来源:百度文库 编辑:神马品牌网 时间:2024/04/28 13:39:17
普通的html标签用 selected属性就可以表示默认选中项,但在
struts中<html:select>和<html:radio>标签没有类似的属性,根本不行。
谢谢哪位知道?
如果用<html:optionsCollection>或<html:options>表示的<html:select>选项都是自动加上的,怎样设置默认选中项呢?

<html:select property="degree" value="X">

那个X就是你要选择的默认项。