We have to create a web application for a school project and I'm wondering what best practices are when creating a web application using java servlets, beans and jsp.
Specifically I'm curious about servlets. Should a single servlet be created with many methods depending on which page is requested (a single controller) or should a servlet be created for each role of functionality?
Our application needs to have a public mode, user mode, and admin mode. Should a controller maybe be created for public functions and another for user functions?
I figured we should have a single servlet which all requests would go to, and that servlet would delegate to other servlets if required. Does this sound like it'd be the right approach?