If I define more layout in tiles-defs.xml and refer tiles layout in tiles-defs.xml, how to minimize the layout jsp?
My situation likes this Welcome.jsp and WelcomeBody.jsp (one page) calls Login.jsp and LoginBody.jsp (another page) On Mon, 18 Oct 2004 12:11:59 -0400, Jeff Beal <[EMAIL PROTECTED]> wrote: > Read http://www.lifl.fr/~dumoulin/tiles/doc/tutorial.html#_Toc521292381. > It describes how to move your Tiles definitions (the part in > Welcome.jsp) into an XML file and using definition names for your Struts > forwards. > > -- Jeff > > > > PC Leung wrote: > > I use two JSP to form a page. > > Is it necessary? > > > > Welcome.jsp: > > <tiles:insert definition="erp.mainLayout" flush="true" > > > <tiles:put name="body" value="/WelcomeBody.jsp" /> > > </tiles:insert> > > > > WelcomeBody.jsp: > > <bean:message key="main.welcome"/> > > > > <html:link action="login"> > > <bean:message key="main.login"/> > > </html:link> > > > > Login.jsp: > > <tiles:insert definition="erp.mainLayout" flush="true" > > > <tiles:put name="body" value="/LoginBody.jsp" /> > > </tiles:insert> > > > > LoginBody.jsp: > > <h1><bean:message key="main.login"/></h1> > > <logic:messagesPresent> > > <bean:message key="errors.header"/> > > <ul> > > <html:messages id="error"> > > <li><bean:write name="error"/></li> > > </html:messages> > > </ul><hr> > > </logic:messagesPresent> > > <html:form action="/login" focus="username"> > > <table border="0" width="80%"> > > <tr> > > <td width="30%" align="right"> > > <bean:message key="loginForm.username"/> > > </td> > > <td width="70%"> > > <html:text property="username"/> > > </td> > > </tr> > > <tr> > > .... > > .... > > > --------------------------------------------------------------------- > 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]