【发布时间】:2011-07-08 04:33:30
【问题描述】:
所以我有一个我正在使用的通用表单 bean,它有一些值,例如操作、报价、代码。
我正在开发一个使用此通用表单(必需)的新表单,但我想使用名称与我从中获取值的 bean 不同的 bean 的值来填充表单页面。
在第一次加载页面时,它会显示一些基本数据:
Action: (hidden input, name the same as the bean)
<html:hidden property="action"/>
Offer: (user input, name the same as the bean)
<html:text property="offer"/>
Code: (hidden input, name not the same as the bean)
<html:hidden property="code"/>
我要使用的 bean 是这样的:
<bean:write name="data" property="data.code.description"/>
如何将该值(data.code.desription)放入“隐藏”代码区域,以便在提交表单时通用表单 bean 获取该值?
【问题讨论】:
标签: html jsp struts jsp-tags javabeans