struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From George Dadulescu <semperv...@gmail.com>
Subject Re: Get the list of all action names defined in struts.xml
Date Sat, 01 Dec 2007 08:53:02 GMT

Thanks for the help. It did point me in the good direction. Here is the
answer:

	RuntimeConfiguration runtimeConfiguration =
Dispatcher.getInstance().getConfigurationManager().getConfiguration().getRuntimeConfiguration();
	Map actionConfigs =	runtimeConfiguration.getActionConfigs();


Gary Affonso wrote:
> 
> George Dadulescu wrote:
>> Hi.
>> Is there any possibility to get the list of all the action names defined
>> in
>> struts.xml ?
> 
> It's in the RunTimeConfiguration.  Something like...
> 
> 
> RuntimeConfiguration runtimeConfiguration = 
> ConfigurationManager.getConfiguration().getRuntimeConfiguration();
> 
>          ActionConfig actionConfig = 
> runtimeConfiguration.getActionConfig("", 
> actionInvocation.getInvocationContext().getName());
> 
> 
> The above is a copy-and-paste from a WebWork app, might need some 
> tweaking for S2.  But it should get you pointed in the right direction.
> 
> - Gary
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Get-the-list-of-all-action-names-defined-in-struts.xml-tf4904545.html#a14103263
Sent from the Struts - User mailing list archive at Nabble.com.


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


Mime
View raw message