Re: Struts 2 and Container resources

2008-01-14 Thread Don Brown
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 Intercept

Re: Struts 2 and Container resources

2008-01-14 Thread Ted Husted
The container's resources can be access from an Action via the HttpServletRequest object. To obtain the HttpServletRequest object, see * http://struts.apache.org/2.x/docs/how-can-we-access-the-httpservletrequest.html HTH, Ted * On Jan 10, 2008 5:55 PM, Filipe

Struts 2 and Container resources

2008-01-10 Thread Filipe David Manana
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.