views:

420

answers:

1
+2  Q: 

Pom Dependency

Which dependency should be added in pom file to import org.apache.tiles.controller?

+1  A: 

org.apache.struts.tiles.Controller is an interface in Struts Tiles 1.x, which you can find in the maven artifact "org.apache.struts:struts-tiles"

<dependency>
    <groupId>org.apache.struts</groupId>
    <artifactId>struts-tiles</artifactId>
    <version>1.3.10</version>
</dependency>

Keep in mind, this only works with Struts 1.x, and not Struts 2.

http://struts.apache.org/1.x/struts-tiles/

Andrew Newdigate
@Andrew :I am using jsf and not struts.Do you know dependency for tiles in jsf?
Warrior
@Warrior, sorry I haven't used JSF and it's been a long time since I used tiles either. I've found SiteMesh to be far easier to use on straight JSP sites (although it could be different for JSF)
Andrew Newdigate