//下拉框 回显(选中之前已选中的值)
<select name="statue" id="statue" id="statue">
<option value="1" ${htmlCont.statue eq '1' ? 'selected':''}>可用</option><option value="2" ${htmlCont.statue eq '2' ? 'selected':''}>不可用</option>
</select>
//选项按钮 回显
<%
String pres[] = {"蓝球","足球"};
request.setAttribute("pres",pres);
%>
<input type="checkbox" name="pre" value="足球" ${fn:contains(fn:join(pres,","),'足球')?'checked':'' }>足球
<input type="checkbox" name="pre" value="蓝球" ${fn:contains(fn:join(pres,","),'蓝球')?'checked':'' }>蓝球
<input type="checkbox" name="pre" value="棒球" ${fn:contains(fn:join(pres,","),'棒球')?'checked':'' }>棒球
<input type="checkbox" name="pre" value="打球" ${fn:contains(fn:join(pres,","),'打球')?'checked':'' }>打球