• 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

Editing a product and its attributes in Spring

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:
Everybody's invited. Except this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!