I am not sure i follow..

To get the attribute value for following property for example

> <set-property name="someName" value="someValue"/>
> <set-property name="someOtherName" value="someOtherValue"/>

Are you saying i should have getSomeName, setSomeName in the class extending
ActionConfig ?

Thanks
Prashant


-----Original Message-----
From: rmanchu [mailto:[EMAIL PROTECTED]
Sent: Friday, May 06, 2005 7:35 PM
To: Struts Users Mailing List
Subject: Re: Action's set-property Tag



set-property is available when u extend ActionConfig and include your
getter/setter methods. [for 1.2.x branch ]

if you're using 1.3.x-dev you can use
<set-property key="" value="">
to set arbitrary properties without extending the config class.
Only available for ActionConfig as of now.

hopefully all config's would get this feature soon

riyaz


Prashant Reddy wrote:
> Struts DTD specifies :
>
> <!ELEMENT action (icon?, display-name?, description?, set-property*,
> exception*, forward*)>
>
> But there seems to be no API on "ActionConfig" to get the Name-Value paris
> set using "set-property" Tag
>
> <action...>
>
> <set-property name="someName" value="someValue"/>
> <set-property name="someOtherName" value="someOtherValue"/>
>
> </action>
>
> Many Thanks for any help.
>
> -Prashant
>
>
> ---------------------------------------------------------------------
> 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]

Reply via email to