Hi all,
I am trying to do pagination with Spring MVC. I want to reuse the same logic that I had for an application I did with
Struts. Now in Struts my
JSP would submit the form with all the paging parameters to the Sturts Action. In the execute method of the Struts action I would use those parameters to get the correct result set from my back end and then forward back to the same JSP. This was possible because in Struts there was only one method which both loaded the data and handled submits (the execute method)
Now in Spring MVC there are 2 methods. One is onSubmit which handles submits and the other is referenceData which loads your data. So my pagination logic hits a snag here. My parameters are avaliable in the onSubmit method but I lose these parameters in the referenceData method (this is where I need them because this is where I load the data). The request parameters are avaliable in onSubmit but not in referenceData.
Anyone have any ideas on how I could persist these parameters into the referenceData method without using the session.
Thanks in advance for any suggestions.