<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Struts2 Map Form to Collection of Objects</title>
	<atom:link href="http://www.zorched.net/2009/07/02/struts2-map-form-to-collection-of-objects/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.zorched.net/2009/07/02/struts2-map-form-to-collection-of-objects/</link>
	<description>Musings of a software developer in Milwaukee, WI.</description>
	<lastBuildDate>Fri, 05 Mar 2010 11:50:11 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: nobilet</title>
		<link>http://www.zorched.net/2009/07/02/struts2-map-form-to-collection-of-objects/comment-page-1/#comment-16041</link>
		<dc:creator>nobilet</dc:creator>
		<pubDate>Thu, 04 Feb 2010 12:52:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.zorched.net/?p=352#comment-16041</guid>
		<description>Thanks for this tips !!!!! You help me a lot !</description>
		<content:encoded><![CDATA[<p>Thanks for this tips !!!!! You help me a lot !</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Geoff Lane</title>
		<link>http://www.zorched.net/2009/07/02/struts2-map-form-to-collection-of-objects/comment-page-1/#comment-15564</link>
		<dc:creator>Geoff Lane</dc:creator>
		<pubDate>Tue, 21 Jul 2009 00:19:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.zorched.net/?p=352#comment-15564</guid>
		<description>@DreamCoder,
You can&#039;t bind directly to the Hibernate objects in that case because you&#039;ll just end up binding to something like Inventory.id which will eventually cause you trouble. 

The best way to do that is to have something like public void setInventoryIds(Integer[] inventoryIds) in your Action and handle loading the instances through Hibernate yourself.</description>
		<content:encoded><![CDATA[<p>@DreamCoder,<br />
You can&#8217;t bind directly to the Hibernate objects in that case because you&#8217;ll just end up binding to something like Inventory.id which will eventually cause you trouble. </p>
<p>The best way to do that is to have something like public void setInventoryIds(Integer[] inventoryIds) in your Action and handle loading the instances through Hibernate yourself.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: DreamerCoder</title>
		<link>http://www.zorched.net/2009/07/02/struts2-map-form-to-collection-of-objects/comment-page-1/#comment-15563</link>
		<dc:creator>DreamerCoder</dc:creator>
		<pubDate>Mon, 20 Jul 2009 18:30:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.zorched.net/?p=352#comment-15563</guid>
		<description>@correction - 

i have given s:checkbox in front of every row which contains product information</description>
		<content:encoded><![CDATA[<p>@correction &#8211; </p>
<p>i have given s:checkbox in front of every row which contains product information</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: DreamerCoder</title>
		<link>http://www.zorched.net/2009/07/02/struts2-map-form-to-collection-of-objects/comment-page-1/#comment-15562</link>
		<dc:creator>DreamerCoder</dc:creator>
		<pubDate>Mon, 20 Jul 2009 18:28:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.zorched.net/?p=352#comment-15562</guid>
		<description>hi buddy this is exactly what i was looking for..thanx for this wonderful informative post..
i have an issue something related to this..
i am using struts2 framework and Hibernate annotations..

i have a Product.java model and Inventory.java model..One Product can be in many inventories..

i am displaying the product list in a table. i have given  in front of every row which contains product information.

now when user checks 3 or 4 (or whatever he likes) checkboxes and clicks on &#039;add to inventory&#039; button, those products should be updated with inventory objects...m currently using @ManytoOne in Inventory.java
do u have any idea how should i do this task..

waiting for ur reply</description>
		<content:encoded><![CDATA[<p>hi buddy this is exactly what i was looking for..thanx for this wonderful informative post..<br />
i have an issue something related to this..<br />
i am using struts2 framework and Hibernate annotations..</p>
<p>i have a Product.java model and Inventory.java model..One Product can be in many inventories..</p>
<p>i am displaying the product list in a table. i have given  in front of every row which contains product information.</p>
<p>now when user checks 3 or 4 (or whatever he likes) checkboxes and clicks on &#8216;add to inventory&#8217; button, those products should be updated with inventory objects&#8230;m currently using @ManytoOne in Inventory.java<br />
do u have any idea how should i do this task..</p>
<p>waiting for ur reply</p>
]]></content:encoded>
	</item>
</channel>
</rss>
