struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jorge Chacón Souto <jorgecha...@mundo-r.com>
Subject Re: obtaining an action's ActionMapping
Date Tue, 24 May 2005 15:33:19 GMT
Thanks!
I wasn't typing the action path correctly

Jorge

Hubert Rabago escribió:

>If it's returning null, make sure that (1) the request you're passing
>for the same module, and (2) you typed your action path correctly. 
>The parameter should match the path of the action mapping you're
>looking for:
>
>  <action-mappings>
>      <action path="/myAction" .../>
>      ...
>  </action-mappings>
>  
>ModuleUtils.getInstance().getModuleConfig(request).findActionConfig("/myAction");
>
>
>hth,
>Hubert
>
>
>On 5/24/05, Jorge Chacón Souto <jorgechacon@mundo-r.com> wrote:
>  
>
>>I changed it because the class ModuleUtils doesn't have a
>>findActionConfig method:
>>
>>http://struts.apache.org/api/org/apache/struts/util/ModuleUtils.html
>>
>>
>>Dakota Jack escribió:
>>
>>    
>>
>>>Just do what he said.  You changed it.
>>>
>>>On 5/24/05, Jorge Chacón Souto <jorgechacon@mundo-r.com> wrote:
>>>
>>>
>>>      
>>>
>>>>I suppose that you refer to doing something like this:
>>>>
>>>>ModuleConfig module = ModuleUtils.getInstance().getModuleConfig(request);
>>>>ActionMappingAplicacionWeb map = (ActionMappingAplicacionWeb)
>>>>module.findActionConfig("FormularioCrearDocumento");
>>>>
>>>>It returns null, I don't know why.
>>>>Any help?
>>>>
>>>>Thanks,
>>>>Jorge.
>>>>
>>>>Hubert Rabago escribió:
>>>>
>>>>        
>>>>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>For additional commands, e-mail: user-help@struts.apache.org
>
>  
>


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


Mime
View raw message