Back Forum Reply New

Tiles 1.0 with Struts amp; Spring MVC

Hi,

I have a quot;legacyquot; application based on Struts/Tiles 1.0.
I want to add new functionality / Screens using Spring MVC.
Struts and Spring MVC seems to work together, however, I am not too sure how to use Spring MVC with Tiles 1.0. I would need a view resolver for Tiles 1 (but there is only one for Tiles 2).

Is converting the tile-defs 1.0 to tiles2.0 simple?
what are my other options?

Thx

Xav

I found the solution so let's share it:

There is a Tile1.0 View Resolver, it is in a separate package from the standard Spring MVC 2.5.2. In fact, it is part of the Spring Struts package (I should have thought of that).
The maven identifier is:Code:
lt;groupIdgt;org.lt;/groupIdgt;
lt;artifactIdgt;spring-webmvc-strutslt;/artifactIdgt;
The setup is easy:Code:
lt;bean id=quot;tilesConfigurerquot; class=quot;org..web.servlet.view.tiles.TilesConfigurerquot;gt;   lt;property name=quot;definitionsquot;gt;lt;listgt;    lt;valuegt;/WEB-INF/tiles-definitions.xmllt;/valuegt;lt;/listgt;       lt;/propertygt;   lt;/beangt;            lt;!-- tiles view resolver  --gt;
lt;bean id=quot;tilesViewResolverquot; class=quot;org..web.servlet.view.uclBasedViewResolverquot;gt;   lt;property name=quot;viewClassquot; value=quot;org..web.servlet.view.tiles.TilesJstlViewquot;/gt;
lt;/beangt;
That is all.

Xav
¥
Back Forum Reply New