Sometime we need to add some info to struts mappings, and for this we use a class that extends ActionMapping. As an example, we need for a webapp to add a "description" to any mapping to build some stats.
DescActionMapping defines a "description" attribute. every action-mapping in struts-config sets this property : <action-mappings type="DescActionMapping"> <action path="/login" name="LoginForm" input="error" scope="request" type="ConnexionAction" > <set-property property="description" value="Authentification"/> <forward name="success" path="/accueil.do" /> <forward name="error" path="tiles:connexion" /> </action> (...) Nico. > Hi, > > I was trying one struts example. In that example, it has created one class > whcih extends ActionMapping class. I was just wondering why we need to > create this class and when is it used and whether we define this class in > struts-config or web.xml? > > Regards > Deepak Saini > > _________________________________________________________________ > Contact brides & grooms FREE! Only on www.shaadi.com. > http://www.shaadi.com/ptnr.php?ptnr=hmltag Register now! > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]