Since I couldn't find a separate mailing list for Tiles, I am posting here.

 

I started using Tiles recently ( bundled with Struts 1.1 ). I am having
problem using "definitions". I get this error:

 

javax.servlet.ServletException: Can't get definitions factory from context.

            at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:530)

            at
org.apache.jsp.testTemplate_jsp._jspService(testTemplate_jsp.java:59)

...

 

 

I am following exactly as the tiles-examples are defined. M struts-config
file is:

 

....

  <plug-in className="org.apache.struts.tiles.TilesPlugin" >

    <set-property property="definitions-config"

                             value="/WEB-INF/tiles-test-defs.xml" />

    <set-property property="moduleAware" value="true" />

  </plug-in>

....

 

The tiles-test-defs.xml file is:

 

....

<definition name="mainPage" path="classicLayout.jsp">

   <tiles:put name="title" value="Hello Tiles"/>

   <tiles:put name="header" value="/jsp/header.jsp"/>

   <tiles:put name="footer" value="/jsp/footer.jsp"/>

   <tiles:put name="body" value="/jsp/main.jsp"/>

</definition>

....

 

And my sample jsp file:

 

<tiles:insert definition="mainPage" flush="true" />

 

 

Any help is appreciated. 

 

 

Thanks

 

-- pady

[EMAIL PROTECTED]

 

 

Reply via email to