How to use adapter design pattern and servlet as controller?

Discussions

Web tier: servlets, JSP, Web frameworks: How to use adapter design pattern and servlet as controller?

  1. Hi folks,

    Relatively new to J2EE architecture, but it draws a lot of my attentions.

    In MVC, people suggest using servlet as centralized controller to receive all the incoming requests, then direct messages/parameters to workflow/business logic. In order to adapt the parameters from views to models, adapter pattern can be used to do the magic.

    The idea sounds good, but I don't know the detail and how. I read the adapter design pattern several times, but doesn't help at all. Would any friends shed some lights on this subject to me.

    Thousand thanks.
  2. A good introduction to using a servlet as a controller can be found at JavaWorld (http://www.javaworld.com/jw-09-1999/jw-09-servlet.html).