I feel I'm reinventing the wheel with this one and wonder what others are doing, as it's such a common requirement.

I have a form for inputting an Order. I want the user to be able to add LineItems to that order by clicking a link or button. Clicking this would take them to a LineItem input form, and when they saved this, they would go back to the Order form, in which a table of LineItems which featured the latest addition would be displayed.

The question is, what happens to the Order when the user moves to the LineItem input form? Is it processed by processFormSubmission (I'm using a SimpleFormController) and stored in the session and until such time as it needs to be displayed again? I feel there must be an inbuilt mechanism in Spring MVC for handling this kind of thing which I have missed. I'd love to see more examples of Spring MVC use other than the JPetstore and Petclinic, showing some more 'real world' uses of the techniques.