Multiple controllers or a single?
795672Aug 13 2008 — edited Aug 13 2008Hi, still fairly new to using any sort of MVC structure with servlet and jsp.
I have been reading a book and some code a colleague has and it suggests creating an action interface and concrete implementations and passing in the name of any jsp you wish to invoke to the controller which does some reflection based work and loads appropriate classes for populating, the controller handles requests for all jsps in this example and instantiates any beans needed.
Is this the current view on things? As the book is dated 2004 and this seems like quite a complicated procedure, although I guess it does leave the controller very loosely coupled to any classes or jsp.
In my opinion it would be easier and simpler to have lots of controllers that each server a certain purpose, although this would probably mean lots more classes. Any hints or opinions would be good.
Thanks