-
Design MVC in java
Well at the moment i m working on a design of a login system of a web app.
i have a login page which submits data in to a front Controller(Servlet), and then this servlet pass this request to a Login controller which is another Servlet, which then talk to the necessary validations and then appropriately redirected to a jsp page which will then build the next client screen..
Am i right in my design..
can i actually have a front controller call servlet which just take the requests and forward those requests to other relevant servlets.
Any help is appreciated thanks..
Dilanka
-
Depends on how big your application is going to become.
The fat controller problem has already been solved by struts which has already had improvements made over it (e.g stripes). Other frameworks like JSF use a different approach. Basically for big projects you are better off using one of the web frameworks already in use as they already solve many of the problems you will need to solve.
-
solved
Thanks a lot.. well i just wanted to see whether this is implementable..
I think i have got the answer thanks a lot.