struts-user mailing list archives

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

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.


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

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

struts1 struts-config.xml
<code>
<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" />
</plug-in>
</code>

Any suggestions? - thanks

André

-- 
"Feel free" - 10 GB Mailbox, 100 FreeSMS/Monat ...
Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail

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


Mime
View raw message