Why is there both a PBController and a PBDispatcher in the sample code?

I have downloaded the example code. In the directory src/com/ora/jsp/servlets, there are a PBControllerServlet class and a PBDispatcherServlet class.

I want to implement your Action Object design and get confused as to what files I need to look at. Where do I find what files belong to what example?

Answer:
Sorry about the confusion.

The PBControllerServlet class corresponds to examples 14-1 through 14-3. It contains the logic for all actions as private methods.

The PBDispatcherServlet class, the Action interface, all XXXAction classes and the ActionUtils class correspond to the example described in “A More Modular Design Using Action Objects”.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>