struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hubert Rabago <jakartau...@yahoo.com>
Subject Re: Including multiple servlets from a jsp page.
Date Mon, 17 Nov 2003 23:39:46 GMT
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 <cblackbu@stinkytoe.com> 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: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
> 


__________________________________
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message