D
drinc2much
Im not sure what direction to go here. I am writing a page that is
supposed to have lots of different dynamic content on the page. I
thought that I would be able to just include my struts servlets in
multiple locations, but as I found out, this does not work.
In my index.jsp I would have something like:
<jsp:include page="top.jsp"/>
<jsp:include page="servlet1.do"/>
<jsp:include page="servlet2.do"/>
<jsp:include page="bottom.jsp"/>
And then the struts application would place in the resulting jsp page
from the
<forward> declaration in my struts-config.xml file into this spot on
the index.jsp page.This works just fine if I include only 1 servlet on
the page. More than one and I get an error saying that you cannot
forward after the response has been committed.
What can I do to make this work? Is tiles the answer? Can somone point
me to some documentation for something like this?
Thanks a lot!
Chris
supposed to have lots of different dynamic content on the page. I
thought that I would be able to just include my struts servlets in
multiple locations, but as I found out, this does not work.
In my index.jsp I would have something like:
<jsp:include page="top.jsp"/>
<jsp:include page="servlet1.do"/>
<jsp:include page="servlet2.do"/>
<jsp:include page="bottom.jsp"/>
And then the struts application would place in the resulting jsp page
from the
<forward> declaration in my struts-config.xml file into this spot on
the index.jsp page.This works just fine if I include only 1 servlet on
the page. More than one and I get an error saying that you cannot
forward after the response has been committed.
What can I do to make this work? Is tiles the answer? Can somone point
me to some documentation for something like this?
Thanks a lot!
Chris