struts-2.0.11 doubleselect problems

来源:互联网 发布:保单机数据库对单 编辑:程序博客网 时间:2024/05/16 09:02

 there are two problems in <doubleselect > tag in struts version 2.0.11

  1. need a <s:form name="***">  tag  and name property must not present
  2. String compare using equals rather than "=="

 

<s:form name="f">
    
<s:doubleselect label="doubleselect test1" name="menu" list="{'fruit','other'}" doubleName="dishes" doubleList="top.equals('fruit') ? {'apple', 'orange'} : {'monkey', 'chicken'}" />
 
</s:form>


原创粉丝点击