首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 软件管理 > 软件架构设计 >

菜鸟求解,一对多中的实体信息如果通过struts2页面中录入

2012-10-08 
初学者求解,一对多中的实体信息如果通过struts2页面中录入roleTel:input typetext namerole.roleTel

初学者求解,一对多中的实体信息如果通过struts2页面中录入
roleTel:<input type="text" name="role.roleTel"/>
问题所在,我不清楚如何在页面中录入Set信息,我是这么录入的,可是没有录入进去

usreName:<input type="text" name="role.userSet[0].userName"/>
usreName:<input type="text" name="role.userSet[1].userName"/>
usreName:<input type="text" name="role.userSet[2].userName"/>

请问正确的该如何录入SET里的值呢,谢谢了









<script type="text/javascript">&lt;!--google_ad_client = &quot;pub-1076724771190722&quot;;/* JE问答468x60 */google_ad_slot = &quot;5958594507&quot;;google_ad_width = 468;google_ad_height = 60;//--&gt;</script><script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript"></script><script src="http://pagead2.googlesyndication.com/pagead/expansion_embed.js"></script><script src="http://googleads.g.doubleclick.net/pagead/test_domain.js"></script><script>google_protectAndRun(&quot;ads_core.google_render_ad&quot;, google_handleError, google_render_ad);</script>问题补充:可以对您的提问补充细节,以得到更准确的答案 菜鸟求解,一对多中的实体信息如果通过struts2页面中录入菜鸟求解,一对多中的实体信息如果通过struts2页面中录入菜鸟求解,一对多中的实体信息如果通过struts2页面中录入菜鸟求解,一对多中的实体信息如果通过struts2页面中录入菜鸟求解,一对多中的实体信息如果通过struts2页面中录入菜鸟求解,一对多中的实体信息如果通过struts2页面中录入菜鸟求解,一对多中的实体信息如果通过struts2页面中录入菜鸟求解,一对多中的实体信息如果通过struts2页面中录入菜鸟求解,一对多中的实体信息如果通过struts2页面中录入菜鸟求解,一对多中的实体信息如果通过struts2页面中录入菜鸟求解,一对多中的实体信息如果通过struts2页面中录入菜鸟求解,一对多中的实体信息如果通过struts2页面中录入菜鸟求解,一对多中的实体信息如果通过struts2页面中录入菜鸟求解,一对多中的实体信息如果通过struts2页面中录入菜鸟求解,一对多中的实体信息如果通过struts2页面中录入菜鸟求解,一对多中的实体信息如果通过struts2页面中录入菜鸟求解,一对多中的实体信息如果通过struts2页面中录入菜鸟求解,一对多中的实体信息如果通过struts2页面中录入菜鸟求解,一对多中的实体信息如果通过struts2页面中录入
字体颜色: 标准深红红色橙色棕色黄色绿色橄榄青色蓝色深蓝靛蓝紫色灰色白色黑色?字体大小: 标准1 (xx-small)2 (x-small)3 (small)4 (medium)5 (large)6 (x-large)7 (xx-large)?对齐: 标准居左居中居右提示:选择您需要装饰的文字, 按上列按钮即可添加上相应的标签<script type="text/javascript"> var editor = new Control.TextArea.Editor(&quot;editor_body&quot;, &quot;bbcode&quot;, false);</script>上传新的文件: 提示信息:上传文件请压缩后再上传,允许zip, rar, gz, tar, bz2, jar, war格式的压缩文件上传图片推荐使用png, jpg, gif等类型文件大小不能超过10MB 提高悬赏:提高悬赏分,以提高问题的关注度 0 您目前的积分:

<script type="text/javascript"> new Validation(&quot;problem_body_form&quot;); editor.setValue(&quot;&quot;); new Validation(&quot;problem_score_form&quot;); new Validation(&quot;problem_comment_form&quot;); </script>

? <tr><s:set name="index" value="#status.index+1"/>
????? <s:set name="books" value="'books('+#index+')'"/>

????? <td><s:textfield name="%#books+'.title'}"/></td><!--书名-->
????? <td><s:textfield name="%#books+'.price'}"/></td><!--价格-->
????? <td><s:textfield name="%#books+'.amount'}"/></td><!--数量-->
? </tr>
</s:iterator>


这块知识比较多,但是不难,一下子讲不完,大概就是你得配置一个struts的转换器,好让struts在提交表单的时候怎样将哪些表单元素组织成目标对象,否则它是不晓得如何工作的。另外,由于是集合,前台一般用到struts的<s:iterator>迭代

热点排行