下拉列表,选择项的实现方式:

ContractedBlock.gif ExpandedBlockStart.gif Code
  <html:select name="zlAdjustForm" property="vo.checkOrgCode" styleClass="input100">
     
<htmlext:dbOptions name="zlAdjustForm" keyType="select ORG_NAME,ORG_NAME from CHECK_ORG_INFO " dbUserid ="0" hasNull="true"/>
  
</html:select>

其中
select name:值为当前form的名称。
property:下拉对象所对应的某个属性。
dbOptions name:值为当前form的名称。
keyType:搜索数据源的SQL语句。(其中第一列为option value,第二列为显示在页面的值)。
hasNull:true为允许为空,ALL:当该属性为空时,意思为所有。

 

< html:select  name ="zlAdjustForm"  property ="vo.dealResult"  styleClass ="input100" >
    
< htmlext:dbOptions  name ="zlAdjustForm"  keyTypes ="zl_jdcc_fcjyjl"  hasNull ="true" />
</ html:select >

其中
select name:值为当前form的名称。
property:下拉对象所对应的某个属性。
dbOptions name:值为当前form的名称。
keyType:字典表中,编码说明字段为zl_jdcc_fcjyjl的所有明细选项。
hasNull:true为允许为空,ALL:当该属性为空时,意思为所有。

在显示数据列表时使用:

< htmlext:write name = " vo "  property = " orgArea "  keyType = " gd_area_outland "/ >

 

在View页面显示数据时使用:
< htmlext:write name = " zlJdccCompanyNamesForm "  property = " vo.orgArea "  keyType = " 行政区划 "/ >

转载于:https://www.cnblogs.com/kfarvid/archive/2009/07/06/1517563.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值