<select id="userRole" name="xtUserModel.userRole" onchange="chfgbm(this);" style="205px;height: 20px;">
<option value=""></option>
<option value="06" <s:if test="xtUserModel.userRole=='06'">selected</s:if>>工信厅一般用户</option>
<option value="07" <s:if test="xtUserModel.userRole=='07'">selected</s:if>>工信厅厅领导用户</option>
<option value="08" <s:if test="xtUserModel.userRole=='08'">selected</s:if>>工信厅系统管理员</option>
</select>
选择项直接写死,每次必须修改程序,不灵活
<s:select style="205px;height: 20px;" id="fgbmbh" list="listJcFgbm" headerKey="" headerValue="" title="分管处室" listKey="xh" listValue="fgbmmc" name="xtUserModel.fgbmbhb" theme="simple" />
从数据库中读取,设置基础表。直接修改数据库中基础表即可