I typically use this kind of structure:
(struts-config.xml) <action path="/manageSomething" type="com.company.ManageSomething" name="searchForm" attribute="userDetail" scope="request" parameter="action"> <forward name="search" path="search.something.view"/> </action> (tiles-defs.xml) <definition name="index.view" path="/WEB-INF/jsp/layout/standardLayout.jsp"> <put name="header.tile" value="/WEB-INF/jsp/common/header.jsp"/> <put name="menu.tile" value="/WEB-INF/jsp/view/menu.jsp"/> <put name="main.tile" value="/WEB-INF/jsp/common/empty.jsp"/> <put name="footer.tile" value="/WEB-INF/jsp/common/footer.jsp"/> </definition> <definition name="search.something.view" extends="index.view"> <put name="main.tile" value="/WEB-INF/jsp/view/something/search.jsp"/> </definition> -- James Mitchell Software Engineer / Open Source Evangelist EdgeTech, Inc. 678.910.8017 AIM: jmitchtx ----- Original Message ----- From: "Bob Thomas" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Wednesday, June 16, 2004 4:11 PM Subject: Re: Tiles problem > So, how do I get the result of main.do into a tile? How do developers typically get the results of a DispatchAction class method into a tile? > > James Mitchell <[EMAIL PROTECTED]> wrote:As mike mentioned....you should not be trying to forward after your /main.do > completes. > > > > -- > James Mitchell > Software Engineer / Open Source Evangelist > EdgeTech, Inc. > 678.910.8017 > AIM: jmitchtx > > ----- Original Message ----- > From: "Bob Thomas" > To: "Struts Users Mailing List" > Sent: Wednesday, June 16, 2004 3:34 PM > Subject: Re: Tiles problem > > > > We have an error 404 page: > > > > > > 404 > > /error.jsp > > > > > > I'm not sure why the 'main.do?method=doInit()' doesn't get put into the > tile. > > > > James Mitchell wrote: > > Did you configure an error page in your web.xml? > > > > > > > > -- > > James Mitchell > > Software Engineer / Open Source Evangelist > > EdgeTech, Inc. > > 678.910.8017 > > AIM: jmitchtx > > > > ----- Original Message ----- > > From: "Bob Thomas" > > To: > > Sent: Wednesday, June 16, 2004 3:23 PM > > Subject: Tiles problem > > > > > > > When I do this ... > > > > > > > > > ... > > > > > > > > > > > > I get the following error message: > > > java.lang.IllegalStateException: Cannot forward after response has been > > > committed > > > > > > What am I doing wrong? > > > > > > Thanks in advance, > > > Bob > > > > > > > > > > > > --------------------------------- > > > Do you Yahoo!? > > > Take Yahoo! Mail with you! Get it on your mobile phone. > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > --------------------------------- > > Do you Yahoo!? > > Read only the mail you want - Yahoo! Mail SpamGuard. > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > --------------------------------- > Do you Yahoo!? > Yahoo! Mail - Helps protect you from nasty viruses. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]