Hi, I am currently deploying Tiles and I am using the simple SimpleTilesInitializerServlet to publish my tiles configuration. After deployment all my tiles definitions that are at the root level work. That is, any file that at the / level that has a <tiles:insertDefintion> tag works fine. But any file that is inside a folder (/folder) with the <tiles:insertDefintion> tag doesn't work and throws the following exception.
java.lang.NullPointerException org.apache.tiles.template.InsertDefinitionModel.start(InsertDefinitionModel.java:74) org.apache.tiles.jsp.taglib.InsertDefinitionTag.doTag(InsertDefinitionTag.java:276) org.apache.jsp.index_jsp._jspx_meth_tiles_005finsertDefinition_005f0(index_jsp.java:64) org.apache.jsp.index_jsp._jspService(index_jsp.java:42) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98 Here is my setup. File: /WEB-INF/tiles.xml <definition name="fa.homepage" template="/layout.jsp"> <put-attribute name="title" value="Title" /> <put-attribute name="header" value="/header.jsp" /> <put-attribute name="menu" value="/common_menu.jsp" /> <put-attribute name="body" value="/fa/body.jsp" /> <put-attribute name="footer" value="/footer.jsp" /> </definition> File: /WEB-INF/web.xml <servlet> <servlet-name>tiles</servlet-name> <servlet-class>org.apache.tiles.web.startup.simple.SimpleTilesInitializerServlet</servlet-class> <load-on-startup>1</load-on-startup> </servlet> File: /fa/index.jsp <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles"%> <tiles:insertDefinition name="fa.homepage" /> Can someone help me understand why all definitions declared at the context path (/) level would work and not work inside folders (/fa)? Thanks, Adi Saraf
