社区
Java EE
帖子详情
Struts how to 批量更新 the many side of one-to-many relationship entity
yultabc
2005-03-05 11:59:38
我写了一个对应Author的ActionForm,其中包含一个HashSet型的变量(其中存放该作者的多部著作)。如何在struts的view组件中修改该作者的信息,并且同时能修改他的多部著作的信息。如何实现
此功能,请大虾们指教。
...全文
136
2
打赏
收藏
Struts how to 批量更新 the many side of one-to-many relationship entity
我写了一个对应Author的ActionForm,其中包含一个HashSet型的变量(其中存放该作者的多部著作)。如何在struts的view组件中修改该作者的信息,并且同时能修改他的多部著作的信息。如何实现 此功能,请大虾们指教。
复制链接
扫一扫
分享
转发到动态
举报
AI
作业
写回复
配置赞助广告
用AI写文章
2 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
yultabc
2005-03-10
打赏
举报
回复
但是,修改后的对象(HashSet型变量中存放的多部著作)提交后,authorActionForm不能把它们封装到HashSet中传输到authorAction。不知在jsp页面中怎么设置,才能实现此功能?你用过struts批量更新实体对象(比如author)吗,具体在jsp页面和action之间是如何做的?
在此现谢谢了。
Jacky1206
2005-03-05
打赏
举报
回复
循环 HashSet 的每个键,修改你要修改的东西,将修改后的 HashSet 提交到后台数据库批量事务更新,基本思路应该是这样
插件8:拼写检查
function PIPHP_SpellCheck($text, $action) { // Plug-in 8: Spell Check // // This plug-in takes a string of text and then highlights // those words it doesn't recognise in the dictionary file. // The ...
Java Interview Questions/Java面试题 .
1 What is transient variable? ...Transient variable can't be serialize. For example if a variable is declared as transient in a Serializable class and the class is written to an Ob...
No row with the given
ide
ntifier exists 解决方法(集锦)
No row with the given
ide
ntifier exists 解决方法 出现异常org.springframework.orm.hibernate3.HibernateObjectRetrievalFailureException: No row with the given
ide
ntifier exists 一. No row with the...
MDA Nice
ide
a, shame about the ...
May 2004 Discuss this ArticleMDA in a NutshellThe OMGs aim with MDA is to allow businesses developing bespoke applications to concentrate on determining their business requirements for the applicatio
SEAM IN ACTION 第一章
Part 1 Teeing off with Seam开球Many excellent frameworks exist to support the development of webbasedJava applicatio...
Java EE
67,549
社区成员
225,860
社区内容
发帖
与我相关
我的任务
Java EE
J2EE只是Java企业应用。我们需要一个跨J2SE/WEB/EJB的微容器,保护我们的业务核心组件(中间件),以延续它的生命力,而不是依赖J2SE/J2EE版本。
复制链接
扫一扫
分享
社区描述
J2EE只是Java企业应用。我们需要一个跨J2SE/WEB/EJB的微容器,保护我们的业务核心组件(中间件),以延续它的生命力,而不是依赖J2SE/J2EE版本。
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章