This week's book giveaway is in the OCMJEA forum. We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line! See this thread for details.
I am trying to use Forward in Spring 3.0. My scenerio is I receive some data and put it in some Model attribute and forward to another page. Get few more data and try to put in same Model Object and send it to last page. Here I could see the data being retreived only from the last page and leaving rest of the Model fields are Null.
I assume, the ModelAttribute is re-instantiated somewhere in the middle which I fail to understand. Find below the Controller code
If you are going to use a form backing bean which is essentially what this is then it has to be bound to something on the form (if the model attribute is request scoped). In the case it is not something you want shown on the form then hidden fields is typically what you use.
Alternatively you can have a look at the reference docs on the use of the @SessionAttributes annotation. You can also store things on the real HttpSession (you can pass HttpSession in as a method parameter) or you can pass values back an forth as @RequestParams.