struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Timo" <timo-jaka...@telus.net>
Subject Tiles Help! Help with Tiles...
Date Fri, 28 Nov 2003 16:48:56 GMT
Hi all,
I tried to use tiles-defs.xml to define a tile, but got the following error:
 
500 Internal Server Error
javax.servlet.jsp.JspException: Error - Tag Insert : No value defined for bean 'stdLayoutDef'
with property 'null' in scope 'null'.
here is my tiles-defs.xml<?xml version="1.0" encoding="ISO-8859-1" ?>   <!DOCTYPE
tiles-definitions PUBLIC  "-//Apache Software Foundation//DTD Tiles Configurations 1.1//EN"
 "http://jakarta.apache.org/struts/dtds/tiles-config_1_1.dtd"><tiles-definitions><!--
 Standard definitions -->    <definition name="stdLayoutDef" path="/Layout/stdLayout.jsp">
       <put name="title"  value="Title String" />        <put name="header" value="/Layout/stdHeader.jsp"
/>        <put name="footer" value="/Layout/stdFooter.jsp" />        <put name="body"
  value="/res/error/resStatusReport.jsp" />    </definition></tiles-definitions>and
here where I used the definition:<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles"%><%@
taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%><%@ include  file="/Layout/stdDefinition.jspf"%><tiles:insert
beanName="stdLayoutDef" flush="true"><tiles:put name="title"  type="string">    
     <bean:message key='title.statusreport' /> </tiles:put><tiles:put name="header"
value="/Layout/stdHeader.jsp" /><tiles:put name="body" value="/res/error/resStatusReportBody.jsp"
/><tiles:put name="footer" value="/Layout/stdFooter.jsp" /></tiles:insert>Here
where I loaded the definition in struts-config.xml...  <plug-in className="org.apache.struts.tiles.TilesPlugin">
   <set-property property="definitions-config" value="/WEB-INF/tiles-defs.xml"/>   
<set-property property="definitions-parser-validate" value="true"/>    <set-property
property="moduleAware" value="true"/>  </plug-in>...sooooo, what did I do wrong?!!!
please help..thanks in advance.
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message