html:select这个烂东西,今天无意中搞定,现记录下来.

html:select property="logAlarmRule.alarmLevel" name="policyForm" value="${policy.alarmLevel}">
         <html:option value="0">未知</html:option>
         <html:option value="1">正常</html:option>
         <html:option value="2">警告</html:option>
         <html:option value="3">严重</html:option>
</html:select>

 

如果不加NAME,就得再定义一个BEAN[bean:define].

如<bean:define name="policyForm"  property="logAlarmRule" id='logAlarmRule'></bean:define>

另外补一个:EL表达式取URL参数用param,ex: <input type="hidden" name="type" value="${param.type}"/>

相关文章:

  • 2022-02-05
  • 2022-02-24
  • 2021-09-13
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-28
猜你喜欢
  • 2021-05-16
  • 2021-06-03
  • 2022-12-23
  • 2021-11-01
  • 2021-11-27
  • 2021-09-26
  • 2021-05-27
相关资源
相似解决方案