Thanks Rene and Michael, I'll look into using Tiles.
robert > -----Original Message----- > From: Michael [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, September 04, 2002 7:20 AM > To: 'Struts Users Mailing List' > Subject: RE: inserting content > > > Using tiles, it's as simple as this: > > <definition name="plant_list" > path="/jsp/status/plant_list.jsp" > controllerUrl="/getAllPlants.do" > > > </definition> > > Then you use this definition as the body for another one. I like it. > > Michael > > > -----Original Message----- > > From: Robert Taylor [mailto:[EMAIL PROTECTED]] > > Sent: Wednesday, September 04, 2002 12:20 PM > > To: [EMAIL PROTECTED] > > Subject: inserting content > > > > > > I have a .jsp page with some content where I would like to > > insert the output/results of executing an action. > > > > For example, let's say content.jsp contains the following: > > > > > > Some content, some content some content. > > > > <!-- insert results of executing action here --> > > > > Some more content, some more content, some more content. > > > > > > I know one way to do this would be to have a set up action > > which executes and places the results into the appropriate > > scope and then the page retrieves the results and renders > > them to the screen. This way would require a Struts type URI > > to invoke the action (/do/something) which subsequently > > forwards or redirects the request to content.jsp. > > > > I was curious if there was a way to request content.jsp > > directly and embedded within content.jsp have a tag that > > requests the URI which would invoke the action which would > > forward to a .jsp page which would be compiled/run and the > > output written to the response which is associated with > > content.jsp. (whooo, out of breath....) > > > > I've tried <jsp:include .../> which complained because the > > page attribute contained a Struts type URI and not an actual > > .jsp page. I tried <bean:include .../> and it kinda worked > > except the id attribute contained the unparsed/unexecuted > > results of the .jsp page. > > > > Is this possible? It seems like it should be and I'm just > > missing something. > > > > robert > > > > > > -- > > To unsubscribe, e-mail: > > <mailto:struts-user-> [EMAIL PROTECTED]> > > For > > additional commands, > > e-mail: <mailto:[EMAIL PROTECTED]> > > > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>