Java Mailing List Archive

http://www.junlu.com/

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

Can I force Struts2 to use Tiles(1)??

Andreas Imner

2007-03-27

Replies:

Using Google, I have found some threads about using Tiles with Struts2,
but they all seem to involve using Tiles2 and not Tiles(1)
(http://www.mail-archive.com/user@(protected)
http://www.mail-archive.com/user@(protected))

Currently, I cannot forward to a Tiles-template when my definition tag
looks like this:

<definition name="view.teststruts2andtiles" path="
/layout/teststruts2andtiles.jsp"/>

causes
org.apache.tiles.TilesException
 at org.apache.tiles.impl.BasicTilesContainer.render
(BasicTilesContainer.java:403)

However, if I change it to using the template -attribute instead, it
works fine
<definition name="view.teststruts2andtiles" template="
/layout/teststruts2andtiles.jsp"/>

As the usage of the template-attribute is defined in the tiles2-DTD, I
suspect that Tiles2 is used by my application and not Tiles(1)

How can I make sure that Tiles1 is used in my Struts2 application? Or
is it not possible?

Many thanks in advance / Andreas

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.