Application design in Spring MVC

Posted by Ravi on Stack Overflow See other posts from Stack Overflow or by Ravi
Published on 2010-03-28T19:28:27Z Indexed on 2010/03/28 19:33 UTC
Read the original article Hit count: 418

Filed under:

Hello All,

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. 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 mehtod inside UserController, or use the same "addUser" method. What is the best way to handle this kind of scenario.

I hope I was able to clear my question.

© Stack Overflow or respective owner

Related posts about spring-mvc