It appears to be an alternative mechanism for setting properties - but only
implemented for action mappings.

Currently (in 1.2) you can have...

<action path="....">
    <set-property property="foo" value="bar"/>
</action>

Then you need to have a custom ActionConfig where you implement getFoo() /
setFoo(value) methods.

Now it appears you can do the following, without a custom ActionConfig
implementation

<action path="....">
    <set-property key="foo" value="bar"/>
</action>

This will call the setProperty(key, value) method in the ActionConfig - you
can then retrieve values using getProperty(key) method - no need for a
custom ActionConfig.

Niall

----- Original Message ----- 
From: "rmanchu" <[EMAIL PROTECTED]>
Sent: Friday, April 29, 2005 11:08 PM


> ver: struts 1.3 dev
>
> i was working on a custom FormPropertyConfig using the <set-property>
> fields.
>
> i saw that it has an ID, and Key attribute in DTD 1.3
>
> did not understand the comments in DTD. could someone explain how these
> might be useful please?
>
> thanx
>
> riyaz



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to