• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Editing a product and its attributes in Spring

 
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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:
reply
    Bookmark Topic Watch Topic
  • New Topic