Example: I have a DispatchAction called OpportunityCustomerAction that is forwadring to a tile:
//*****snippet start in struts config ****// <action path="/OpportunityCustomerAction" type="com.companyX.opportunity.CustomerAction" name="OpportunityCustomerForm" input="CustomerDef" scope="session" parameter="method" > <forward name="success" path="CustomerDef" /> </action> //*****snippet end struts config****// Whether the validation fails or succeeds it will forwarded to the CustomerDef tile. //*****snippet start in tiles definition ****// <?xml version="1.0" encoding="ISO-8859-1"?> <component-definitions> <definition name="CustomerDef" path="/templates/layout.jsp"> <put name="header" value="/templates/header.jsp"/> <put name="menu" value="/templates/menu.jsp"/> <put name="footer" value="/templates/footer.jsp"/> <put name="body" value="/opportunity/customerBody.jsp"/> </definition> .... </component-deifnitions> //*****snippet end in tiles definition ****// ----- Original Message ----- From: "bojke" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Wednesday, June 16, 2004 10:50 AM Subject: How do I put a JSP via a DispatchAction class into a tile? > I understand how to put a static page into a tile ... > <tiles:insert page="layout.jsp" flush="true"> > <tiles:put name="header" value="header.jsp" /> > ... > </tiles:insert> > > ... but how do I put a dymanic page ... that is, a JSP via a > DispatchAction class into a tile? When I use the action path from > struts-config.xml (i.e. "main.do"), It does not work. > > Thanks. > > --------------------------------------------------------------------- > 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]