wood burning stoves 2.0*
The moose likes Spring and the fly likes How to pre-populate Spring session bean with Spring MVC annotation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "How to pre-populate Spring session bean with Spring MVC annotation" Watch "How to pre-populate Spring session bean with Spring MVC annotation" New topic
Author

How to pre-populate Spring session bean with Spring MVC annotation

Linh Dang Hong
Greenhorn

Joined: Sep 10, 2008
Posts: 8
Hi all, I'm implementing an application that saves Order into database. Obviously, Order has many OrderItems, and I tend to allow user add and remove OrderItems dynmically on screen by using Ajax. I prefer that for each Ajax addOrderItem call, it adds a new OrderItem in an session scoped bean name "order". The problem is, for the Spring Annotation, I cannot find an annotation that maps form bean with an session scoped bean. @ModelAttribute and @SessionAttributes only support form backing bean for the conversation between HTTP GET and HTTP method. Is there any solution to store and map a session bean with the Spring MVC annotation?

Thanks for your kind helps


SCJP 5.0
SCWCD 5.0
SCBCD 5.0
SCJWSD 5.0
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to pre-populate Spring session bean with Spring MVC annotation
 
Similar Threads
Validate problem in addition to resetting chosen values?
Spring beginner needs help with design issue
How to pass form value from one action path to another?
Implicit navigation redirect causing new session
Correct way to assign a value to a managed bean from a class?