struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Maurizio Cucchiara <maurizio.cucchi...@gmail.com>
Subject Re: Is it possible to add Action configuration dynamically after the struts has been loaded
Date Sat, 18 Dec 2010 02:25:11 GMT
Maybe there is a better way than orchestrating directly a low level api.
What do you need exactly?
Why don't you simple use wildcard mapping [1]?

[1] http://struts.apache.org/2.1.8/docs/wildcard-mappings.html

Maurizio Cucchiara

On Dec 18, 2010 2:04 AM, "wusheng zhang" <zwusheng@gmail.com> wrote:
> I have some action definition xml fragments generated by some
> general-action,
> I just want to update the action mapping by the so called 'general-action'
> at run time,
> and let them serves the following requests.
>
>
> I found the org.apache.struts2.config.StrutsXmlConfigurationProvider
object
> can be
> retrieved through
>
>
org.apache.struts2.dispatcher.Dispatcher.getInstance().getConfigurationManager().getConfigurationProviders();
>
> Is this a possible way or right way to carries out the such a
> 'dynamic-configuration-tasks'?
>
> thanks.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message