You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Preston CRAWFORD <Pr...@state.or.us> on 2005/10/11 23:44:34 UTC
Re: Is the best way to have multiplestruts-config.xmlandtiles-defs.xml files, modules?
Oooh. I like that. That works relatively well so far, although it's not
picking up on my secondary tiles-defs.xml file.
Preston
>>> java@wendysmoak.com 10/11/2005 2:26:22 PM >>>
From: "Preston CRAWFORD" <Pr...@state.or.us>
> I've done this in the past. Used modules to logically (and for the
sake
> of having sane config files) break up these config files. However
I'm
> wondering if anyone avoids using modules and maybe merges the files
> using ANT or something?
You can have multiple Struts config files without using modules:
http://www.mail-archive.com/user@struts.apache.org/msg32270.html
http://struts.apache.org/api/org/apache/struts/action/ActionServlet.html
config - Comma-separated list of context-relative path(s) to the XML
resource(s) containing the configuration information for the default
module.
(Multiple files support since Struts 1.1)
[/WEB-INF/struts-config.xml].
--
Wendy Smoak
---------------------------------------------------------------------
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
Re: Is the best way to have multiplestruts-config.xmlandtiles-defs.xml files, modules?
Posted by Kishore Senji <ki...@gmail.com>.
TilesPlugin doesn't configure the TilesDefinitionsFactory once it is already
configured, so, if you use comma-separated xml files you would to declare
all your tiles-definitions in only one xml file. Similarly for Validator --
ValidatorPlugin overrides the resources from subsequent calls to its init
method, so you would have to declare all the validator resources in one xml
file.
Also it is always better to prefix action paths and tiles-defs based on the
xml file. That way it totally eliminates the possibility of silently
overriding action-mappings, tiles-defs of one xml file by another xml file.
On 10/11/05, Preston CRAWFORD <Pr...@state.or.us> wrote:
>
> Oooh. I like that. That works relatively well so far, although it's not
> picking up on my secondary tiles-defs.xml file.
>
> Preston
>
> >>> java@wendysmoak.com 10/11/2005 2:26:22 PM >>>
> From: "Preston CRAWFORD" <Pr...@state.or.us>
>
> > I've done this in the past. Used modules to logically (and for the
> sake
> > of having sane config files) break up these config files. However
> I'm
> > wondering if anyone avoids using modules and maybe merges the files
> > using ANT or something?
>
> You can have multiple Struts config files without using modules:
> http://www.mail-archive.com/user@struts.apache.org/msg32270.html
>
> http://struts.apache.org/api/org/apache/struts/action/ActionServlet.html
>
> config - Comma-separated list of context-relative path(s) to the XML
> resource(s) containing the configuration information for the default
> module.
> (Multiple files support since Struts 1.1)
> [/WEB-INF/struts-config.xml].
>
> --
> Wendy Smoak
>
>
> ---------------------------------------------------------------------
> 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
>
>