struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig R. McClanahan" <craig...@apache.org>
Subject Re: Retrieving mapping props as a Map
Date Thu, 18 Jul 2002 16:36:06 GMT


On Thu, 18 Jul 2002, MacLeod, Kenny wrote:

> Date: Thu, 18 Jul 2002 12:00:29 +0100
> From: "MacLeod, Kenny" <Kenny.MacLeod@AIG.com>
> Reply-To: Struts Users Mailing List <struts-user@jakarta.apache.org>
> To: "'struts-user@jakarta.apache.org'" <struts-user@jakarta.apache.org>
> Subject: Retrieving mapping props as a Map
>
> Folks,
>
> Is it possible to obtain the <set-property> items of an action mapping as a
> Map object, rather than have the digester attempt to invoke them as bean
> properties?
>
> I have a situation where I need to be able to pass arbitrary properties to
> the mapping, so the reflection mechnaism won't work.  Rather, I need access
> to those properties as a data structure.
>
> Any suggestions much appreciated,
>

There is no current mechanism to do this kind of thing.  One approach
would be to use the general purpose "parameter" property to pass a
reference to some external resource file that contains all the stuff that
your particular action needs to configure itself.

> kenny
>

Craig


--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message