Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Struts 2 »

Re: Struts 2 and tiles

Joe Germuska

2007-01-31

Replies:

That looks right to my eye. I'd suggest setting your logging config to
"debug" for the category "org.apache.tiles.impl" (the class which
specifically handles the definitions is BasicTilesContainer). Perhaps that
will help.

I have to stress once again that Tiles 2 has not been released. If you are
interested in using it, you have to be ready to get inside the code to
understand how it works until more documentation is written (and to be ready
to make changes to your code as changes get made to the framework, since
there's no specific backwards compatibility baseline we have to guarantee
for the first Tiles 2 release.)

Joe

On 1/30/07, Sai Nay Thurein Nyo <sainaythurein.nyo@(protected):
>
>
> Hi Joe,
>
> I am testing on the tiles 2 to use in my new framework using Struts 2.
> I tried the following and it doesn't work.
> The tiles keep looking for the /WEB-INF/tiles.xml file which is default.
> All I need to do is simply add in the context parameter in web.xml right?
>
> <context-param>
>         <param-name>org.apache.tiles.DEFINITIONS_CONFIG</param-name>
>
> <param-value>/WEB-INF/tiles-common.xml,/WEB-INF/tiles-sample.xml
> </param-value>
>   </context-param>
>
> I did try a few other configurations with different params names such as
> "definition-config, tiles-definiation" also didn't working.
>
>
--
Joe Germuska
Joe@(protected)

"The truth is that we learned from João forever to be out of tune."
-- Caetano Veloso
©2008 junlu.com - Jax Systems, LLC, U.S.A.