struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sekar, Sowmya" <>
Subject Struts 1.1 and Tiles 2 compatability
Date Mon, 11 Mar 2013 20:01:46 GMT

I am in the process of upgrading from Tiles 1 to Tiles 2.2.2 combined with Struts 1.1.

I have the following configuration in struts-config.xml

<controller processorClass="org.apache.struts.tiles.TilesRequestProcessor"/>

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

Below is the dtd configured in tiles.xml

<!DOCTYPE tiles-definitions PUBLIC
       "-//Apache Software Foundation//DTD Tiles Configuration 2.0//EN"

I have the tiles2.2.2 related jars(tiles-jsp, tiles-servlet, tiles-template, tiles-api, tiles-core)
in my classpath and I use maven to import jars in my project

When I start tomcat and display my page, I get the following error,

Mar 11, 2013 12:54:52 PM org.apache.catalina.core.ApplicationDispatcher invoke
SEVERE: Servlet.service() for servlet jsp threw exception
org.apache.tiles.template.NoSuchAttributeException: Attribute 'topmenu' not found.
       at org.apache.tiles.template.DefaultAttributeResolver.computeAttribute(
       at org.apache.tiles.template.InsertAttributeModel.resolveAttribute(
       at org.apache.tiles.template.InsertAttributeModel.start(

It is not able to find any of the attributes in tiles.xml

Any thoughts?


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message