Originally posted by Vani Nandeesh:
If you have multiple controllers, then do you have another servlet to control the flow to theses servlets.
How does it work?
Thanks.
I can think of it two ways. You can have a front controller, which is mapped to all the URL's, to forward requests to second level controllers based on some parameter values or request uri, then those controllers take care of their specific job and forward to appropriate view components. The other way is that you can map separate urls to separate servlets so that each servlet can process its designated url request. This is probably what Ben mentioned.
Struts action mapping technique seems like using the former way.
Sometimes mix of front controller and MVC pattern can be useful.
Regards