How to pass from one jsp to another jsp storing data in session with Spring
<p>I want to know how to use <code>sessionAttributes</code> and <code>ModelAttributes</code> for my specific scenario described below:</p>

<p>I have two jsp pages with form fields. When I enter form field values in the first jsp page and click on next, these filled form fields values should be stored in the session attribute but not in the database. After moving to the second jsp page, again fill form fields and click on submit. This time first jsp (from the session attribute in the controller) and second jsp page form field values should be saved in the DB.</p>

<p>Please guide me how to achieve this. If have any sample code, that would be great help.</p>