• Post Reply Bookmark Topic Watch Topic
  • New Topic

Editing a product and its attributes in Spring  RSS feed

Gilbert johnson
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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:
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!