I'm new to Spring MVC and trying out a simple project.It will contain a simple adding, viewing, updating and deleting user work flows. It will have login page and once authenticated the user will be taken to a welcome screen which will have links to add, view, update and delete users. Clicking on any of the links will take to individual pages where the user can do the specific tasks. What I'm doing here is, I'm using a MultiActionController to group together all requests related to User work flow. As the user cannot directly access the addUser.jsp file which is inside the WEB-INF folder, so the request from "Add User" link will handled by the addUser method in the UserController which will redirect the user to the "Add User" page, and the user can then fill in the details and save the new user. Now here is where I'm getting confused. Where should I put the save process of the new user, should I put that in new method inside UserController, or use the same "addUser" method. What is the best way to handle this kind of scenario. Can you provide me with some sample code. Thanks
@Rajkumar: I don't have much idea about Spring annotations, but I'm interested in trying it. Can you direct me to a simple example. I did wrote a SimpleFormController (without annotations) in which I configured the Command name ,class, the form view and success view in the constructor something like this
Can you provide me with a sample code/tutorial for the about code in annotations. Thanks for your help.