This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
It looks like your page is for entering details for an item...
So the command object should be an Item, not an Order - fill out the Item, and add it to the Order on submit. You'd need some way to get the current order to add it to - so you'd probably save the current Order in the session.
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
Joined: Jan 18, 2007
Thanks for the reply.
But I need the Order as command because in my jsp page there are some Order properties too which I didn't mentioned in the jsp page that I post in this forum.
This is my Order class:
Order is my parent entity and ItemSet(Set) is a collection of a group of Item Objects that will be submitted when a customer will save his order. Its one-many relationship.