Question about BasePgActionC.java

"Geeta Ramani" <[email protected]>
Newsgroups gmane.comp.java.mvc.devel
Organization Central Maine Power Company
Message-ID <[email protected]>
Hi all:

I have been studying the BasePgActionC class and have a basic
question.   What BasePgActionC seems to be doing is gathering all the
"main code" in the various action classes together and cleverly using
reflection in the dispatchEvents method to call  the appropriate method:
say, onSaveExc, or onZoomExec, etc.  I'd like to know what the
advantages of this approach are.

One thing I like very much about in what I think is the more
"traditional" struts approach is the fact that the Action classes are
separated and each achieves just one thing.  For example SaveAction
would only worry about saving, "ListUsersAction" only about listing
users etc.  Am I missing something basic?

Thanks,
Geeta
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.