> -----Original Message----- > From: Craig Dickson [mailto:[EMAIL PROTECTED] > Sent: Friday, August 13, 2004 2:48 PM > To: Struts Users Mailing List > Subject: RE: Nested tile definitions w parameters > > > Jim, thanks for the reply, but I am having some trouble understanding > what you did.
I just made the content value point at another tiles definition. Since you have main layout, that in essence wants to call a sublayout, that's what you're doing. > > How does the viewContent parameter get used? > > Also, just for clarification, view.jsp has the sub-layout in it and > singlePanel.jsp contains the content I wish to insert into an area in > the layout. > > Jim Barrows wrote on 8/13/2004, 2:16 PM: > > > > > <snip/> > > What about taking this: > > > > > > <definition name=".view.single" extends=".masterLayout"> > > > <put name="content" value="/WEB-INF/jsp/view/view.jsp"/> > > > <put name="viewPane" > value="/WEB-INF/jsp/view/singlePanel.jsp"/> > > > </definition> > > > > and doing this: > > <definition name=".view.single" extends=".masterLayout"> > > <put name="content" value="view"/> > > <put name="viewPane" > value="/WEB-INF/jsp/view/singlePanel.jsp"/> > > </definition> > > <definition name="view"> > > <put name="viewContent" > > value="/WEB-INF/jsp/subLayoutPageWithTilesInsertsAndStuff.jsp"/> > > </definition> > > > > > > /WEB-INF/jsp/view/view.jsp > > > > > > Basically what we are trying to achieve is to use the > view.jsp as the > > > content that gets included by the master.jsp layout page. But the > > > view.jsp page also has a <tiles:insert attribute="viewPane"/> > > > tag in it > > > - kind of like a sub-layout situation. We want to include the > > > singlePanel.jsp page inside the view.jsp page. > > > > > > When the page renders, we get an error stating that > there is no value > > > for "viewPane" - like it is not getting passed or something. > > > > > > Are we doing something wrong, or is this "nested tile > > > definitions" use > > > case outside of Struts current capability? > > > > > > 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] > > > > > > --------------------------------------------------------------------- > 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]