The mapping that is sent to your object has the global mappings,
and the local ones as well.

As for your second question, I'm not sure but the example application
was done very early and it wouldn't surprise me if the class is not
used at all. Have you tried a global search? If it's not used anywhere
then it might be a hang over from earlier iterations of the code.

>    Quick questions from a newbie.. When the mapping is local to a
>particular action, the Action class should call findForward on the mapping
>that's passed in.  But if the mapping is a global one, it should call
>findForward on the instance of ActionServlet (called servlet) that is passed
>down from the parent Action class.  Is this correct?  Or does the
>ActionMapping that's passed in to the perform() method already contain the
>global mappings?  The reason I ask if because I really don't like the idea
>of having access (and having to use) member variables of a parent class.  It
>makes my OO alarms go off.  The example Struts application uses the
>"servlet" object, instead of the ActionMapping instance.

--
Kumera - a new Open Source Content Management System
for small to medium web sites written in Perl and using XML
http://www.cyber4.org/kumera/index.html

Reply via email to