Tiles is one way to do it. Take a look at the Tiles Controller. http://jakarta.apache.org/struts/api/org/apache/struts/tiles/Controller.html
Check out http://www.theserverside.com/resources/article.jsp?l=Tiles101 for some explanation on it. --- Chris Blackburn <[EMAIL PROTECTED]> wrote: > I am trying to build a web page that will have multiple dynamic content > fed from multiple servlets. I thought I could just do something like: > > <-- index.jsp --> > > <c:import url="top.jsp"/> > <c:import url="/servlet1.do"/> > <c:import url="/servlet2.do"/> > <c:import url="bottom.jsp"/> > > <-- end --> > What I would like to happen is have the struts servlet be run, and have > the resulting jsp page (defined in the <forward> section of my > struts-config.xml) be "imported" into that spot. This works just fine if > there is only one servlet being called, but fails if there are more. The > error is "Cannot forward after result has been committed". > > What do I need to do? Do I need to look at something like tiles? Any help, > or references to some help would be great. > > Thanks, > > Chris > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > __________________________________ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]