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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to