将bean属性与struts中的多个对象绑定
是否可以将 strut-1 Bean 属性绑定到多个表单元素?例如,我动态创建行,每行都有一个下拉列表,我可以使用单个 Bean 属性绑定所有这些下拉列表吗(类似于数组中的值),这样我就可以轻松获取所有下拉列表的值。
谢谢
Is this possible to bind a strut-1 Bean property to multiple form elements?for example, i am dynamically creating rows and each row has a drop down, can i bind all those drop downs with single Bean property (something like values in array) so i can fetch the values of all drop downs easily.
thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的。以相同的方式命名所有选择框(例如
foos
),并在表单 bean 中包含一个方法。
Yes. Name all your select boxes the same way (
foos
, for example), and have a methodin your form bean.