I imagine it'll take some refactoring to get what you want. Assuming that "/EventsAction.do?dispatch=display" and "/RelocationAction.do?dispatch=display" eventually forward to JSPs that generate HTML fragments, you'll probably want your "main" page to end up like:
<table><tr><td> <%@ include file="displayEvents.jspf" %> </td></tr></table> <table><tr><td> <%@ include file="displayRelocation.jspf" %> </td></tr></table> In other words, static includes that make use of the information provided by RelocationAction.display() and EventsAction.display(). I guess Tiles might be another option, but I don't use it so I'm not in a position to suggest exactly how it might help. As for your action code, it seems like it could be moved into a couple of helper classes that are just invoked directly by your "main" action (the one that forwards to the JSP with the tables). So, you might have EventsHelper and RelocationHelper classes that can be called from different actions but that perform the same sort of logic that you've currently got embedded within actions. Quoting Eric Lemle <[EMAIL PROTECTED]>: > Thanks for the reply, so is there a solution, can I get the HTML from > the actions into this jsp? > -Eric > > Eric D. Lemle > Senior Programmer / Analyst > Intermountain Health Care > 36 South State Street, Suite 1100 > Salt Lake City, Utah 84111 > United States of America (USA) > (801) 442-3688 -- e-mail: [EMAIL PROTECTED] > > > >>> [EMAIL PROTECTED] 2/3/2005 5:28:09 PM >>> > Sort of. Remember, the "normal" result of a Struts action is the > equivalent > of RequestDispatcher.forward(). So, I imagine you're also seeing an > IllegalStateException as well. You've got the equivalent of the > following: > > includer.jsp: > ------------- > <@% page contentType="text/plain" %> > > Before forwarder1: > <jsp:include page="forwarder1.jsp"/> > After forwarder1: > > Before forwarder2: > <jsp:include page="forwarder2.jsp"/> > After forwarder2: > > forwarder1.jsp: > --------------- > <jsp:forward page="content1.jsp"/> > > forwarder2.jsp: > --------------- > <jsp:forward page="content2.jsp"/> > > content1.jsp: > ------------- > content1.jsp > > content2.jsp: > ------------- > content2.jsp > > Which should generate: > > content1.jsp > > Along with raising an IllegalStateException. > > Eric Lemle wrote: > > I have a jsp. that has two included jsp's that are actually struts > > actions but the response only returns the first one. > > I have tried flush="false" (Doesn't matter) > > I have tried the <jsp:param's for the parameters (Doesn't matter) > > Is there something in the framework that is preventing this? > > > > > > <table><tr><td> > > <jsp:include page="/EventsAction.do?dispatch=display" flush="true" > /> > > </td></tr></table> > > > > <table><tr><td> > > <jsp:include page="/RelocationAction.do?dispatch=display" > flush="true" > > /> > > </td></tr></table> > > > > > > Eric D. Lemle > > Senior Programmer / Analyst > > Intermountain Health Care > > 36 South State Street, Suite 1100 > > Salt Lake City, Utah 84111 > > United States of America (USA) > > (801) 442-3688 -- e-mail: [EMAIL PROTECTED] > > -- > Kris Schneider <mailto:[EMAIL PROTECTED]> > D.O.Tech <http://www.dotech.com/> -- Kris Schneider <mailto:[EMAIL PROTECTED]> D.O.Tech <http://www.dotech.com/> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]