You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Volker Krebs <vo...@abas.de> on 2006/07/19 10:54:28 UTC

Multiple struts-config files with wildcards

Hello,

I want to specify multiple struts-config files.
But I don't want to use comma seperated list like

<init-param>
   <param-name>config</param-name>
   <param-value>
     /WEB-INF/struts-config.xml,
     /WEB-INF/struts-config2.xml,
     /WEB-INF/struts-config3.xml
   </param-value>
</init-param>

I want to use wildcards. So it should look like this.
<init-param>
   <param-name>config</param-name>
   <param-value>
     /WEB-INF/struts*,
     /WEB-INF/user/struts*
   </param-value>
</init-param>

Has anyone some hints ?

I was thinking about extending org.apache.struts.action.ActionServlet
and overwriting parseModuleConfigFile(Digester digester, String path)

Thanks
Volker


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


Re: Multiple struts-config files with wildcards

Posted by David Durham <dd...@vailsys.com>.
Volker Krebs wrote:
> I want to use wildcards. So it should look like this.
> <init-param>
>   <param-name>config</param-name>
>   <param-value>
>     /WEB-INF/struts*,
>     /WEB-INF/user/struts*
>   </param-value>
> </init-param>
> 
> Has anyone some hints ?
> 
> I was thinking about extending org.apache.struts.action.ActionServlet
> and overwriting parseModuleConfigFile(Digester digester, String path)

I think that extending ActionServlet and overriding its methods is 
generally not recommended.  I would just submit a feature request, if I 
were you, and go with a list for right now.  Just my 2 cents.


-Dave

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