struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nils-Helge Garli Hegvik" <nil...@gmail.com>
Subject Re: Getting action extension from a class "outside" the container
Date Mon, 23 Jun 2008 20:15:43 GMT
Would it be safe to pass the instantiated object to the the inject
method of the container? Just want to make sure that I won't step into
some unfortunate side effects...

Nils-H

On Mon, Jun 23, 2008 at 9:55 PM, Nils-Helge Garli Hegvik
<nilsga@gmail.com> wrote:
> After looking into the proposed solution, I'm not sure if it's the
> right thing to do. The code where I need the extension runs in the
> portlet dispatcher, before the ActionInvocation has been created. So
> it would access the ActionContext before it has actually been created.
> I think I need to access the action extension property from the
> container in a way...
>
> Nils-H
>
> On Mon, Jun 23, 2008 at 2:56 PM, Nils-Helge Garli Hegvik
> <nilsga@gmail.com> wrote:
>> Ok, so I have to look up the current executing action and it's action
>> mapping from the action context? I'll try that. Thanks.
>>
>> Nils-H
>>
>> On Mon, Jun 23, 2008 at 2:49 PM, Don Brown <mrdon@twdata.org> wrote:
>>> The ActionMapping contains the original extension that request was
>>> submitted with.  You can retrieve the ActionMapping either via the
>>> ServetActionContext or the portlet dispatcher.
>>>
>>> Don
>>>
>>> On Mon, Jun 23, 2008 at 7:44 PM, Nils-Helge Garli Hegvik
>>> <nilsga@gmail.com> wrote:
>>>> Hi!
>>>>
>>>> I'm looking at WW-2622 and I need to get the configured action
>>>> extension for the application. Is there a way to obtain this from a
>>>> class that is not instantiated by the core container?
>>>>
>>>> Nils-H
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
>>>> For additional commands, e-mail: dev-help@struts.apache.org
>>>>
>>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
>>> For additional commands, e-mail: dev-help@struts.apache.org
>>>
>>>
>>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Mime
View raw message