You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Christopher Cheng <ch...@skywidetech.com> on 2007/12/12 09:07:57 UTC
different tiles definition files for packages
Could I have a different tiles defintion file for different package like
struts1?
Is it possible to pass some parameters to TilesResult?
<package name="default" extends="struts-default">
<result-types>
<result-type name="tiles"
class="org.apache.struts2.views.tiles.TilesResult"/>
</result-types>
<default-interceptor-ref name="paramsPrepareParamsStack"/>
</package>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: different tiles definition files for packages
Posted by Antonio Petrelli <an...@gmail.com>.
2007/12/12, Dave Newton <ne...@yahoo.com>:
> --- Christopher Cheng <ch...@skywidetech.com> wrote:
> > Could I have a different tiles defintion file for different package
> > like struts1?
>
> You can still have multiple tiles definition files, although AFAIK there
> isn't a way to have defs by package automagically. Not a bad idea, though--if
> there is a way to do this, please follow up as I have a lingering Tiles/JSP
> project I'd use that with.
AFAIK there is not such a feature, though in Struts 1/Tiles 2 (as it
was in Struts-Tiles 1) you could define different Tiles definition
files per module.
In Struts 2 the "StrutsTilesListener" is used at start-up, and it can
be define application-widely.
I think that this feature could be useful. Christopher, can you open
an issue for a feature request in JIRA?
https://issues.apache.org/struts/browse/WW
Thanks
Antonio
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: different tiles definition files for packages
Posted by Dave Newton <ne...@yahoo.com>.
--- Christopher Cheng <ch...@skywidetech.com> wrote:
> Could I have a different tiles defintion file for different package
> like struts1?
You can still have multiple tiles definition files, although AFAIK there
isn't a way to have defs by package automagically. Not a bad idea, though--if
there is a way to do this, please follow up as I have a lingering Tiles/JSP
project I'd use that with.
d.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org