Ricky, Thanks Alot.... I re-read your email over and over (before I get some sleep) and did not understand it. Just re-read it again today, and got my mistake fixed. thanks a lot. ----- Original Message ----- From: "Ricky" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Friday, November 28, 2003 9:00 AM Subject: Re: Tiles Help! Help with Tiles...
> you don't need to put the value again..after you define your definiton in > tile-config.xml,.change your code below : > > <%@ 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> > > to a simple code just like this: > > <tiles:insert definition="stdLayoutDef" /> > > within the page you will be display the tiles.(not the layout page) > > > > ----- Original Message ----- > From: "Timo" <[EMAIL PROTECTED]> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > Sent: Saturday, November 29, 2003 12:48 AM > Subject: Tiles Help! Help with Tiles... > > > 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. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]