struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "André Henke" <>
Subject tiles2 with struts1
Date Thu, 19 Apr 2007 06:44:28 GMT

is there a way to get struts1 work with tiles2?

I'm migrating my application to struts2/tiles2 but there is still struts1 code using tiles
forwards which must be supported. 

So i have to share the tiles.xml with struts1 TilesPlugin and struts2 StrutsTilesListener.

<listener>  		<listener-class>org.apache.struts2.tiles.StrutsTilesListener</listener-class>

tiles.xml (tiles-2.0.1)
<!DOCTYPE tiles-definitions PUBLIC
        "-//Apache Software Foundation//DTD Tiles Configuration 2.0//EN"
	<definition name=".base" template="/layout.jsp">
		<put-attribute name="title" value=""/>
		<put-attribute name="body" value=""/>
		<put-attribute name="navigation" value=".navigation"/>

struts1 struts-config.xml
<plug-in className="org.apache.struts.tiles.TilesPlugin">
<set-property property="definitions-config" value="/WEB-INF/tiles.xml" />
<set-property property="definitions-debug" value="0" />
<set-property property="definitions-parser-details" value="0" />
<set-property property="definitions-parser-validate" value="false" />
<set-property property="moduleAware" value="true" />

Any suggestions? - thanks


"Feel free" - 10 GB Mailbox, 100 FreeSMS/Monat ...
Jetzt GMX TopMail testen:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message