When you display JSP from Struts action, you forward to it. Forwarding from included resource is not supposed to work properly according to current SRV spec. You may want to explicitly specify flush="false" and to use JSP1.2+ containers, but this will not work on Tomcat as you like. It will work on Resin though.
Try JSTL <c:import> instead of <jsp:include>. I was told that this works, though I did not verify if myself. Michael. On 4/8/06, 王曾wang_zeng <[EMAIL PROTECTED]> wrote: > I am developing a web site, and my work is based on the prototype > already made by people who are in charge of designing UI. All my work start > from the point when I get these 11 beautifully designed but static pages, > and my task is to make them dynamic and have real meaning. To achive this > goal,I use "<jsp:include>" tag in these static pages to include the url of > the page which has some function that fetch data from database and fomat > them properly. codes are as follow: > ********************************************************* > -------index.jsp--------- > //some static parts > <jsp:include page="getprojects.do" /> > > -------GetProjectsAction.class----- > //... > //fetch data from database > //encapsulation into beans > //put beans into request > > return mapping.findForward("sucess"); > > //... > > -------projectsbox.jsp(sucess)------- > //read beans in request > //formating the data > **************************************************** > But these codes will result an exception caused by "the response has > commitded". So I made some change to the codes.Modified codes are as follow: > ************************************************ > -------index.jsp--------- > //some static parts > <jsp:include page="projectsbox.jsp" /> > > -------projectsbox.jsp------- > <jsp:include page="getprojects.do" /> > //read beans in request > //formating the data > > -------GetProjectsAction.class----- > //... > //fetch data from database > //encapsulation into beans > //put beans into request > return null; > **************************************** > Then,they works.If anybody can know what I mean,please try to explain the > reason to me,and I'll really appreciate your replay. > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]