Hi to all,

I have a newbie problem and I would appreciate any help.
Thanks in advance.
I have the following constellation:
web.xml:
<snip>
   <taglib>
   <taglib-uri>/tags/struts-tiles</taglib-uri>
   <taglib-location>/WEB-INF/struts-tiles.tld</taglib-location>
  </taglib>
<snap>

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

tiles-defs.xml
<snip>
   <definition name="BasisLayout" path="/src/web/layout/layout.jsp" >
       <put name="head" value="/src/web/layout/head.jsp"/>
       <put name="foot" value="/src/web/layout/foot.jsp"/>
   </definition>
<snap>

then i have a Definition-Jsp, where I extend "BasisLayout"
that looks like this:
<snip>
<tiles:definition id="logger" page="/src/web/layout/layout.jsp" extends="BasisLayout">
<tiles:put name="body" value="/src/web/logger.jsp" />
</tiles:definition>
<snap>


this jsp do I include in newLog.jsp this way:
<snip>
   <%@ page language="java" %>
   <%@ taglib uri="../../WEB-INF/struts-tiles.tld" prefix="tiles" %>
   <[EMAIL PROTECTED] file="./layout/TilesDefinitions.jsp" %>
   <tiles:insert beanName="logger" flush="true" />
<snap>

The head and the foot pages have been replaced correctly, but the extended part of the Definitions-jsp is missing with the message:

[Exception in:/src/web/logger.jsp] null

.
The logger.jsp itself is working correctly, so it has to do something with Tiles I suppose.
Didn't find anything in the UserGuide.
Thanks for any help
Matze



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to