aspose file tools*
The moose likes Spring and the fly likes Path Value in input type in jsp page using Spring MVC Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Path Value in input type in jsp page using Spring MVC" Watch "Path Value in input type in jsp page using Spring MVC" New topic
Author

Path Value in input type in jsp page using Spring MVC

Manoj Paul
Ranch Hand

Joined: Jan 18, 2007
Posts: 112
Hello everybody!

This is my jsp page:



This is my Order(bean) class:




This is my Item (bean) class:





This is my Spring controller:







Can someone please tell me what should be the path value of the following code which i have mentioned in the jsp page:



Please help me!

Thanks
Nathan Pruett
Bartender

Joined: Oct 18, 2000
Posts: 4121

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.


-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
Manoj Paul
Ranch Hand

Joined: Jan 18, 2007
Posts: 112
Hello,
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.

Please advice.
Thanks again for the reply.
Hong Anderson
Ranch Hand

Joined: Jul 05, 2005
Posts: 1936
The code is too long. You don't need to post unnecessary code.


SCJA 1.0, SCJP 1.4, SCWCD 1.4, SCBCD 1.3, SCJP 5.0, SCEA 5, SCBCD 5; OCUP - Fundamental, Intermediate and Advanced; IBM Certified Solution Designer - OOAD, vUML 2; SpringSource Certified Spring Professional
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Path Value in input type in jsp page using Spring MVC