> .... But how can I get the value specified in the "parameter"
> attribute in my action class.
ActionMapping.getParameter() will get you the value of the parameter
attribute.

> .... Also using "set-property" inside a
> "action" tag does not work?
It works for me. You have to subclass ActionMapping and declare it in your
struts-config file.

<action-mappings type="com.companyname.SubclassedActionMapping">


So when you use set-property, Struts can set those values using reflection.
My guess as to why
its not working is that it silently fails to set those properties because
they don't exist
in the default ActionMapping class.



robert


> -----Original Message-----
> From: Anand Patil [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, February 04, 2004 4:06 PM
> To: [EMAIL PROTECTED]
> Subject: Using Parameter in Action via the struts-config.xml
>
>
> Hi All,
>   The struts configuration DTD supports having a "parameter" attribute
> to a "action". But how can I get the value specified in the "parameter"
> attribute in my action class. Also using "set-property" inside a
> "action" tag does not work? Anyone have any idea about this?
>
>
> Regards
> Anand Patil
>


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

Reply via email to