使用struts标签控制下拉框的默认值
<td align="right" width="190">备案类型:</td>
<td>
<select name="recordType" id="recordType" class="input_select">
<option value="" <s:if test="recordType==null">selected="selected"</s:if>>不限</option>
<option value="0" <s:if test="recordType==0">selected="selected"</s:if>>肉类</option>
<option value="1" <s:if test="recordType==1">selected="selected"</s:if>>菜类</option>
<option value="2" <s:if test="recordType==2">selected="selected"</s:if>>肉菜</option>
</select>
</td>