Thanks for the information guys. I actually have tried upping the response buffer size in a variety of places (JSP, Struts action, application server configuration) but it didn't fix the problem for me.
As for ensuring that the headers aren't messed with in the included resource (JSP/Struts action), I don't know that this is easy to do. I can tell you that I do not believe I am doing any operation that would cause a change to the response headers. However, I have read that simply performing an include can cause a response to be committed and subsequently performing a forward (using ActionForward) can cause an IllegalStateException. I don't really understand this, both conceptually and based on experiment but it seems to be inconsistently true nonetheless. It seems that the first include of a Struts action goes through fine (usually, sometimes truncated buffer), but the second or third include of a Struts action (for me) causes an IllegalStateException. Anyway, I've been able to skirt the issue by using absolute URLs in my <c:include> statement, a trick which seems to bypass the include operation's commit of the response. This is far from ideal as the request scope is different between the included resource and the calling one, so I'm still very interested in help finding out whether my issues are common, whether they should be considered symptoms of a bug, and whether there is a cleaner workaround that the one described above. Have a look at my original post, which got lost in the thread, for more background and related resources: http://marc.theaimsgroup.com/?l=struts-user&m=109942705229329&w=2 Thanks again, Jeff -----Original Message----- From: David G. Friedman [mailto:[EMAIL PROTECTED] Sent: Friday, November 05, 2004 6:18 PM To: Struts Users Mailing List Subject: RE: [****] Including a Struts action in a JSP - IllegalStateException / truncated response issue Jeff, Try this previous post on IllegalStateException response has already been committed: http://marc.theaimsgroup.com/?l=struts-user&m=108152145227595&w=2 The author suggested 2 courses of action: 1. Try increasing the buffer size on myjsp.jsp. Default is 8kb 2. Make sure that you are not changing the header portion of the response in your included JSP page. I remember a post with the same exception and the issue was a buffer issue. Regards, David -----Original Message----- From: Parke Jeff [mailto:[EMAIL PROTECTED] Sent: Friday, November 05, 2004 11:28 AM To: [EMAIL PROTECTED] Cc: Struts Users Mailing List Subject: Re: [****] Including a Struts action in a JSP - IllegalStateException / truncated response issue Thanks for the information, Jeff. Unfortunately, though the Tiles Advanced Features Guide indicates it is possible to include multiple Struts actions (using <tiles:insert>) on one page, I _still_ get the IllegalStateException Response has already been committed. "We often need to prepare data to be shown by a JSP page. In the MVC framework, the controller prepares data (in the model) to be shown by the view. Translated to Tiles and Struts, we can use a Struts Action as a controller, a JSP page as a view, and combine both in a Tile. So, when you insert the Tile, the Action is called before the JSP page is displayed. Now, your complex web page can be made of Tiles fed by controllers (one sub-controller for each Tile). This approach is better than one single controller for all Tiles of the page, because it really allows building autonomous Tiles, without worrying about how to fed (sic) them all." - Tiles Advanced Features Guide (http://www.lifl.fr/~dumoulin/tiles/tilesAdvancedFeatures.pdf) This is describing exactly what I want to accomplish and the reason for it but I keep running into the same committed response problem. Is it possible that this is a container issue rather than being a Struts issue? Can someone else confirm that <c:import> and <tiles:insert> both cause an IllegalStateException when including more than 1 (actually try 3 or 4) Struts action on the same JSP? Thanks again for anyone who can help, Jeff -------------------------------------------------------- I think that it is unusual to directly include Struts actions in JSP files. When composing pages of different parts, Tiles is the much more common approach. The standard usage of Tiles is to include JSP files directly, but you can use tiles to include Struts actions in JSP files. (See Section 5.2 of the Tiles Advanced Features guide, a PDF file, at http://www.lifl.fr/~dumoulin/tiles/tilesAdvancedFeatures.pdf.) -- Jeff -------------------------------------------------------- Parke Jeff wrote: I'm still having trouble including a Struts action into a JSP (<c:import url="/someAction.do" />). I've tried using absolute URLs, passing the jsessionid to ensure that the session is not lost, but the request context is different between the JSP and the included action, so this not suitable for many situations. I've also tried upgrading to Struts 1.2.4. This does not resolve the "Response has already been committed" issue when including more than one Struts action in a JSP. The app server is using JRE 1.4.1_03-b02. Can anyone tell me whether they have seen this situation before? How common is it? Is it unusual to include Struts actions in JSPs? Anyone? Thanks, Jeff --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]