天天看點

下拉選擇框,預設選擇項判斷

 <select name="status">

   <option value=""></option>

   <option value="0" <c:if test="${status == '0' }">selected</c:if>><bean:message

    key="feedback.Unhandled" /></option>

   <option value="1" <c:if test="${status == '1' }">selected</c:if>><bean:message

    key="feedback.Handled" /></option>

   <option value="2" <c:if test="${status == '2'}">selected</c:if>><bean:message

    key="feedback.Close" /></option>

  </select>

c