You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Emi Lu <em...@encs.concordia.ca> on 2011/07/28 22:28:04 UTC

how web.xml load several tile files?

Good afternoon,

Tiles2.2.2 + struts2.2.3.

Web.xml
=============
    <context-param>
         <param-name>
           org.apache.tiles.impl.BasicTilesContainer.DEFINITIONS_CONFIG
         </param-name>
         <param-value>
           /WEB-INF/tiles/t1.xml,
           /WEB-INF/tiles/t2.xml
         </param-value>
    </context-param>

Only t1.xml is found; but t2.xml cannot be found.

Can someone tell why? If this way does not work, how to load several 
tile files?

Thanks a lot!
Emi

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


Re: how web.xml load several tile files?

Posted by mm...@wernervas.com.
    <context-param id="struts_tiles">
 
<param-name>org.apache.tiles.impl.BasicTilesContainer.DEFINITIONS_CONFIG</param-name>
 
<param-value>/WEB-INF/classes/t1.xml,/WEB-INF/classes/t2.xml</param-value>
    </context-param>

Mitch



From:   Emi Lu <em...@encs.concordia.ca>
To:     Dave Newton <da...@gmail.com>
Cc:     Struts Users Mailing List <us...@struts.apache.org>
Date:   07/28/2011 03:38 PM
Subject:        Re: how web.xml load several tile files?



Hi Dave,

Could you give an example?

Emi


On 07/28/2011 04:30 PM, Dave Newton wrote:
> Did you try the tiles list?
>
> Dave
>
> On Jul 28, 2011 4:28 PM, "Emi Lu" <emilu@encs.concordia.ca
> <ma...@encs.concordia.ca>> wrote:
>  > Good afternoon,
>  >
>  > Tiles2.2.2 + struts2.2.3.
>  >
>  > Web.xml
>  > =============
>  > <context-param>
>  > <param-name>
>  > org.apache.tiles.impl.BasicTilesContainer.DEFINITIONS_CONFIG
>  > </param-name>
>  > <param-value>
>  > /WEB-INF/tiles/t1.xml,
>  > /WEB-INF/tiles/t2.xml
>  > </param-value>
>  > </context-param>
>  >
>  > Only t1.xml is found; but t2.xml cannot be found.
>  >
>  > Can someone tell why? If this way does not work, how to load several
>  > tile files?
>  >
>  > Thanks a lot!
>  > Emi
>  >
>  > ---------------------------------------------------------------------
>  > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> <ma...@struts.apache.org>
>  > For additional commands, e-mail: user-help@struts.apache.org
> <ma...@struts.apache.org>
>  >


-- 
Emi Lu, ENCS, Concordia University, Montreal H3G 1M8
emilu@encs.concordia.ca        +1 514 848-2424 x5884

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



Re: how web.xml load several tile files?

Posted by Emi Lu <em...@encs.concordia.ca>.
Hi Dave,

Could you give an example?

Emi


On 07/28/2011 04:30 PM, Dave Newton wrote:
> Did you try the tiles list?
>
> Dave
>
> On Jul 28, 2011 4:28 PM, "Emi Lu" <emilu@encs.concordia.ca
> <ma...@encs.concordia.ca>> wrote:
>  > Good afternoon,
>  >
>  > Tiles2.2.2 + struts2.2.3.
>  >
>  > Web.xml
>  > =============
>  > <context-param>
>  > <param-name>
>  > org.apache.tiles.impl.BasicTilesContainer.DEFINITIONS_CONFIG
>  > </param-name>
>  > <param-value>
>  > /WEB-INF/tiles/t1.xml,
>  > /WEB-INF/tiles/t2.xml
>  > </param-value>
>  > </context-param>
>  >
>  > Only t1.xml is found; but t2.xml cannot be found.
>  >
>  > Can someone tell why? If this way does not work, how to load several
>  > tile files?
>  >
>  > Thanks a lot!
>  > Emi
>  >
>  > ---------------------------------------------------------------------
>  > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> <ma...@struts.apache.org>
>  > For additional commands, e-mail: user-help@struts.apache.org
> <ma...@struts.apache.org>
>  >


-- 
Emi Lu, ENCS, Concordia University, Montreal H3G 1M8
emilu@encs.concordia.ca        +1 514 848-2424 x5884

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


Re: how web.xml load several tile files?

Posted by Emi Lu <em...@encs.concordia.ca>.
On 07/28/2011 04:36 PM, mmckenzie@wernervas.com wrote:
> Try removing the return after  "t1.xml,"

No. That does not work! Still cannot find t2.xml! How!

Emi


>
>
>
> From:   Dave Newton<da...@gmail.com>
> To:     Struts Users Mailing List<us...@struts.apache.org>,
> emilu@encs.concordia.ca
> Date:   07/28/2011 03:30 PM
> Subject:        Re: how web.xml load several tile files?
>
>
>
> Did you try the tiles list?
>
> Dave
>   On Jul 28, 2011 4:28 PM, "Emi Lu"<em...@encs.concordia.ca>  wrote:
>> Good afternoon,
>>
>> Tiles2.2.2 + struts2.2.3.
>>
>> Web.xml
>> =============
>> <context-param>
>> <param-name>
>> org.apache.tiles.impl.BasicTilesContainer.DEFINITIONS_CONFIG
>> </param-name>
>> <param-value>
>> /WEB-INF/tiles/t1.xml,
>> /WEB-INF/tiles/t2.xml
>> </param-value>
>> </context-param>
>>
>> Only t1.xml is found; but t2.xml cannot be found.
>>
>> Can someone tell why? If this way does not work, how to load several
>> tile files?
>>
>> Thanks a lot!
>> Emi
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>
>


-- 
Emi Lu, ENCS, Concordia University, Montreal H3G 1M8
emilu@encs.concordia.ca        +1 514 848-2424 x5884

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


Re: how web.xml load several tile files?

Posted by Emi Lu <em...@encs.concordia.ca>.
On 07/28/2011 04:36 PM, mmckenzie@wernervas.com wrote:
> Try removing the return after  "t1.xml,"
>
Ok, it works. Sorry about the previous email. Hope it fix the whole thing.

Thanks a lot! Strange, tile2.0.7 enter works.

Anyhow, it works.

Great!
Emi



>
>
>
> From:   Dave Newton<da...@gmail.com>
> To:     Struts Users Mailing List<us...@struts.apache.org>,
> emilu@encs.concordia.ca
> Date:   07/28/2011 03:30 PM
> Subject:        Re: how web.xml load several tile files?
>
>
>
> Did you try the tiles list?
>
> Dave
>   On Jul 28, 2011 4:28 PM, "Emi Lu"<em...@encs.concordia.ca>  wrote:
>> Good afternoon,
>>
>> Tiles2.2.2 + struts2.2.3.
>>
>> Web.xml
>> =============
>> <context-param>
>> <param-name>
>> org.apache.tiles.impl.BasicTilesContainer.DEFINITIONS_CONFIG
>> </param-name>
>> <param-value>
>> /WEB-INF/tiles/t1.xml,
>> /WEB-INF/tiles/t2.xml
>> </param-value>
>> </context-param>
>>
>> Only t1.xml is found; but t2.xml cannot be found.
>>
>> Can someone tell why? If this way does not work, how to load several
>> tile files?
>>
>> Thanks a lot!
>> Emi
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>
>


-- 
Emi Lu, ENCS, Concordia University, Montreal H3G 1M8
emilu@encs.concordia.ca        +1 514 848-2424 x5884

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


Re: how web.xml load several tile files?

Posted by mm...@wernervas.com.
Try removing the return after  "t1.xml,"

Mitch



From:   Dave Newton <da...@gmail.com>
To:     Struts Users Mailing List <us...@struts.apache.org>, 
emilu@encs.concordia.ca
Date:   07/28/2011 03:30 PM
Subject:        Re: how web.xml load several tile files?



Did you try the tiles list?

Dave
 On Jul 28, 2011 4:28 PM, "Emi Lu" <em...@encs.concordia.ca> wrote:
> Good afternoon,
>
> Tiles2.2.2 + struts2.2.3.
>
> Web.xml
> =============
> <context-param>
> <param-name>
> org.apache.tiles.impl.BasicTilesContainer.DEFINITIONS_CONFIG
> </param-name>
> <param-value>
> /WEB-INF/tiles/t1.xml,
> /WEB-INF/tiles/t2.xml
> </param-value>
> </context-param>
>
> Only t1.xml is found; but t2.xml cannot be found.
>
> Can someone tell why? If this way does not work, how to load several
> tile files?
>
> Thanks a lot!
> Emi
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>


Re: how web.xml load several tile files?

Posted by Dave Newton <da...@gmail.com>.
Did you try the tiles list?

Dave
 On Jul 28, 2011 4:28 PM, "Emi Lu" <em...@encs.concordia.ca> wrote:
> Good afternoon,
>
> Tiles2.2.2 + struts2.2.3.
>
> Web.xml
> =============
> <context-param>
> <param-name>
> org.apache.tiles.impl.BasicTilesContainer.DEFINITIONS_CONFIG
> </param-name>
> <param-value>
> /WEB-INF/tiles/t1.xml,
> /WEB-INF/tiles/t2.xml
> </param-value>
> </context-param>
>
> Only t1.xml is found; but t2.xml cannot be found.
>
> Can someone tell why? If this way does not work, how to load several
> tile files?
>
> Thanks a lot!
> Emi
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>