Do you want a bean from the Container? If so, just put an @Inject
annotation above a setter. For example, to get the ObjectFactory, put
this code in your Action:
@Inject
public void setObjectFactory(ObjectFactory factory) {
this.objectFactory = factory;
}
Since Actions, Results, and Interceptors are automatically processed
for injections, you have access to any internal Struts component (or
configuration setting) in the container.
Don
On Jan 11, 2008 9:55 AM, Filipe David Manana <[EMAIL PROTECTED]> wrote:
> Hi,
>
> How can I access a Container's resource within the code of an action?
>
> cheers
>
> --
> Filipe David Manana,
> [EMAIL PROTECTED]
>
> Obvious facts are like secrets to those not trained to see them.
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]