permaculture playing cards*
The moose likes Other Application Frameworks and the fly likes Editing a product and its attributes in Spring Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "Editing a product and its attributes in Spring" Watch "Editing a product and its attributes in Spring" New topic
Author

Editing a product and its attributes in Spring

Gilbert johnson
Ranch Hand

Joined: Jul 10, 2005
Posts: 45
Guys,
I'm kind of stuck here - and my mind is drawing complete blank - it seems like a pretty simple issue - but for some reason I'm not getting it.

I have 2 tables - Product and ProductAttributes. In the product pojo- I have a OneToMany relationship with productAttributes as shown below:


Now when I need to display - the product and its values - I would simply load the product and pass it to the JSP page where I'll display the attributes as shown below:


Each product has its own set of attributes. Now I need to create a form where the user can edit the product information like attributes etc.

So I have a product form which contains a set of product attributes. Now how do I display these attribute values in the jsp page so that they are editable.

Basically I'm getting confused on the syntax for path. If my command name is product, what do I put for the path value for attributes:
 
Don't get me started about those stupid light bulbs.
 
subject: Editing a product and its attributes in Spring
 
Similar Threads
iterating ArrayList in forEach
struts dynavalidatorBean with HashMap & JSTL
showing values in table on basis of column header
JSF TreeMap Iteration Problem Using JSTL In XHTML
DynaActionForm properties not correctly set with checkboxes