Java开发网 |
注册 |
登录 |
帮助 |
搜索 |
排行榜 |
发帖统计
|
您没有登录 |
» Java开发网 » Architecture & Framework
» Struts
打印话题 寄给朋友 订阅主题 |
作者 | Re:struts标签中options,optionsCollection 的区别以及一些属性项的问题 [Re:wmgreat] |
why
問題兒童 总版主 发贴: 4629 积分: 388 |
于 2005-04-24 12:21
Check Struts Developer Guide (the API reference) http://struts.apache.org/userGuide/struts-html.html#optionsCollection This tag differs from the <html:options> tag in that it makes more consistent use of the name and property attributes, and allows the collection to be more easily obtained from the enclosing form bean. options ... The collection of labels displayed to the user can be the same as the option values themselves, or can be different, depending on the presence or absence of the labelName and labelProperty attributes. If this feature is used, the collection of labels must contain the same number of elements as the corresponding collection of values. The following combinations are allowed: * Neither labelName nor labelProperty is specified - The labels will be the same as the option values themselves. * Only labelName is specified - The value of this attribute is the name of a JSP bean in some scope that is the collection. * Only labelProperty is specified - The value of this attribute is the name of a property of the ActionForm bean associated with our form, which will return the collection. * Both labelName and labelProperty are specified - The value of the labelName attribute identifies a JSP bean in some scope. The value of the labelProperty attribute is the name of some property of that bean which will return the collection. |
话题树型展开 |
人气 | 标题 | 作者 | 字数 | 发贴时间 |
11688 | struts标签中options,optionsCollection 的区别以及一些属性项的问题 | wmgreat | 71 | 2005-04-20 23:04 |
9409 | Re:struts标签中options,optionsCollection 的区别以及一些属性项的问题 | wmgreat | 7 | 2005-04-24 11:25 |
10404 | Re:struts标签中options,optionsCollection 的区别以及一些属性项的问题 | why | 1399 | 2005-04-24 12:21 |
已读帖子 新的帖子 被删除的帖子 |
Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1 客服电话 18559299278 客服信箱 714923@qq.com 客服QQ 714923 |