per the ActionMapping api... Additional properties can be added by a subclass, simply by providing appropriate public "getter" and "setter" methods.
you can use (for example)... <set-property property="foo" value="test" /> ...as long as the subclass has getFoo/setFoo methods defined, you tell struts to use it via the "mapping" init param for the controller servlet, then in your action you cast the ActionMapping back to your subclass giving you access to property value(s)... unlike the parameter property, there's no limit to the number of set-property name/value pairs you can add to your application... hth, dave -----Original Message----- From: Antony Stace [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 30, 2002 7:05 PM To: [EMAIL PROTECTED] Subject: Anyway to pass a parameter with the struts-config.xml file to an action? Hi Is there anyway in the struts-config.xml file to specify a parameter and its value to be passed to an action, ie I am looking for something like <parameter name="action" value="new"> <action path="/listNewDepartments" type="com.bogusdomain.bogusproject.ListDepartments" name="departmentsForm" > <forward name="success" path="/WEB-INF/pages/department.jsp"/> <parameter name="action" value="new"> </action> Is there some mechanism to do this using the struts-config.xml file? -- Cheers Tony --------------------------------------------------------------------- _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>