struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Blackburn" <>
Subject Including multiple servlets from a jsp page.
Date Mon, 17 Nov 2003 23:13:07 GMT
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="/"/>
<c:import url="/"/>
<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.



To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message