Take a look at this: http://www.lifl.fr/~dumoulin/tiles/doc/tutorial.html#_Toc521292375 And remember that a definitions-config MUST BE an XML that follows the Tiles configuration DTD. Ciao Antonio Petrelli
Jonathan M Z wrote: >I am a bit baffled by creating tiles definitions in >jsp(not XML) >here is the jsp that tries to use the tiles ><%@ taglib uri="/WEB-INF/struts-tiles.tld" >prefix="tiles" %> ><[EMAIL PROTECTED] file="../defs/common-defs.jsp"%> ><tiles:insert definition="common.default"> > <tiles:put name="body" value="calc/Assessment.jsp"/> ></tiles:insert> >Here is common-defs.jsp ><%@ taglib uri="/WEB-INF/struts-tiles.tld" >prefix="tiles" %> ><tiles:definition id="common.default" >page="../layout/defaultLayout.jsp" scope="request"> > <tiles:put name="header" value="../common/Top.jsp"/> > <tiles:put name="menubar" >value="../common/Side.jsp"/> > <tiles:put name="footer" >value="../common/footer.jsp"/> ></tiles:definition> > >Now I did two things >1) nothing more >2) >in my struts-config I inserted ><plug-in >className="org.apache.struts.tiles.TilesPlugin" > > <set-property property="definitions-config" >value="/defs/common-defs.jsp"/> > <set-property property="definitions-debug" value="2" >/> > <set-property property="definitions-parser-details" >value="2"/> > <set-property property="definitions-parser-validate" >value="true"/> > <set-property property="moduleAware" value="true"/> ></plug-in> > >notice that it points to a jsp page, not an XML > >In the first case struts complained: >SRVE0068E: Could not invoke the service() method on >servlet /calc/AssessmentCalc.jsp. Exception thrown : >javax.servlet.ServletException: Can't get definitions >factory from context. > at >org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContext Impl.java:639) >In the second case struts complained: >[3/1/05 12:49:04:649 PST] 00000045 Digester E >Parse Fatal Error at line 3 column 2: The markup in >the document preceding the root element must be >well-formed. > >So how am I suppose to config the tiles definition >properly in a jsp page and use it properly? >thank you for the help > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]