You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by George Dadulescu <ge...@gmail.com> on 2007/08/09 12:05:01 UTC
tiles defs file
Hi. I've just started using struts 2 and I need a little help from you guys.
I tried to integrate tiles with struts but I don't have all the info. I
added the struts-tiles plugin, the listener "
org.apache.struts2.tiles.StrutsTilesListener" and I added the
<result-types>
<result-type name="tiles" class="
org.apache.struts2.views.tiles.TilesResult" />
</result-types>
in my struts.xml but now I don't know how to configure the tiles defs file
and any other step I missed.
PS: Where should I put the former <init-param> element so that the
application knows where is my tiles defs file ?
Thanks.
Re: tiles defs file
Posted by Antonio Petrelli <an...@gmail.com>.
2007/8/9, j alex <st...@gmail.com>:
>
> Also, if you dont specify any path for the tiles def ; it default to
> WEB-INF/tiles.xml (Tiles 2.0.4 onwards i guess)
It's the default even on Struts-Tiles
Antonio
Re: tiles defs file
Posted by j alex <st...@gmail.com>.
Also, if you dont specify any path for the tiles def ; it default to
WEB-INF/tiles.xml (Tiles 2.0.4 onwards i guess)
On 8/9/07, Antonio Petrelli <an...@gmail.com> wrote:
>
> 2007/8/9, George Dadulescu <ge...@gmail.com>:
> > Hi. I've just started using struts 2 and I need a little help from you
> guys.
> > I tried to integrate tiles with struts but I don't have all the info. I
> > added the struts-tiles plugin, the listener "
> > org.apache.struts2.tiles.StrutsTilesListener" and I added the
> > <result-types>
> > <result-type name="tiles" class="
> > org.apache.struts2.views.tiles.TilesResult" />
> > </result-types>
> > in my struts.xml but now I don't know how to configure the tiles defs
> file
> > and any other step I missed.
> >
> > PS: Where should I put the former <init-param> element so that the
> > application knows where is my tiles defs file ?
>
>
> See:
> http://tiles.apache.org/tutorial/configuration.html
> See the instructions for the use of the "TilesListener", the context
> parameter is the same even using StrutsTilesListener.
>
> Antonio
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
Re: tiles defs file
Posted by Antonio Petrelli <an...@gmail.com>.
2007/8/9, George Dadulescu <ge...@gmail.com>:
> Hi. I've just started using struts 2 and I need a little help from you guys.
> I tried to integrate tiles with struts but I don't have all the info. I
> added the struts-tiles plugin, the listener "
> org.apache.struts2.tiles.StrutsTilesListener" and I added the
> <result-types>
> <result-type name="tiles" class="
> org.apache.struts2.views.tiles.TilesResult" />
> </result-types>
> in my struts.xml but now I don't know how to configure the tiles defs file
> and any other step I missed.
>
> PS: Where should I put the former <init-param> element so that the
> application knows where is my tiles defs file ?
See:
http://tiles.apache.org/tutorial/configuration.html
See the instructions for the use of the "TilesListener", the context
parameter is the same even using StrutsTilesListener.
Antonio
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org