We are implementing a project in Spring MVC.I have assumed the logic for the sessions had to be written in the Controller classes instead of jsp pages in order to be able to manipulate the "model". So i tried putting:
in the Login Controller and:
in the next Controller which shows the success view. Both the Controller's onSubmit() methods have HttpServlet request and response objects as parameters.
Simultaneously, in the Dispatcher-servlet, i set the session "true" as follows:
Inspite of all this, its showing the "sessionUserid" as null in the second Controller class (by SOPL). Please let me know what other changes should be made for it to work. Help greatly appreciated.