> -----Original Message----- > From: Dave Bender [mailto:[EMAIL PROTECTED] > Sent: Tuesday, September 07, 2004 11:36 AM > To: Struts Users Mailing List > Subject: Struggling with includes > > > I'm still a newbie with Struts, but farther along than I was > a week ago. > I'm still puzzled about how to get includes to work. > > I've got an application with a 'master/detail' relationship. We have > documents and each document has zero or more replies. I want > to be able to > display the details of the document and list all its replies, all on a > single page. Ideally, I'd like one JSP to display a single document's > details so that page fragment can be used in various places, > and one JSP to > display the list of replies for the same reason. > > Outside of Struts, I'd create those page fragments, then > create a JSP that > has two <jsp:includes.../>. But if I do that in Struts I get > an error that > the response has already been committed.
<jsp:include is outside of Struts, and is actually processed by the container. I'm guessing there's something wrong with either the include statement, or the way your using it. If you're calling an action, then, iirc, the action uses a servlet include to generate the html that gets spit out. I'd try running a debugger and step through the code to see what's actualy comitting the response. Course, I use tiles for this kind of thing more then jsp:include... > > I see that I can set up an Action to "include," but if that's > the way to do > this, how do I specify where in the page (the response) that > include occurs? > And how do I do more than one for one request/response? > > Dave > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]