If you use <jsp:include> this is a separate compilation and is more like a function, hence the 'parameters'.
However, what it sounds like to me is you are looking for a 'c' macro facility with parameters. I don't believe this functionality is available. If you use the straight text include it is a parameterless macro. Since we are in a servlet environment, stick the parameters in the request and in your include pull them out of the request. This way you will have both the textual include with access to your form information and the parameters you need. Edgar > -----Original Message----- > From: Aidan Monroe [mailto:[EMAIL PROTECTED] > Sent: Tuesday, March 18, 2003 10:53 AM > To: 'Struts Users Mailing List' > Subject: RE: Including A JSP Containing Struts > > > no, because I want to pass parameters to the included > page. > > --- Edgar Dollin <[EMAIL PROTECTED]> wrote: > > Have you tried the straight text include: > > > > <%@ include file="yourPage" %> > > > > Edgar > > > > > -----Original Message----- > > > From: Aidan Monroe [mailto:[EMAIL PROTECTED] > > > Sent: Monday, March 17, 2003 6:43 PM > > > To: 'list' > > > Subject: Including A JSP Containing Struts > > > > > > > > > I'd like to create a JSP file that can be included > > in > > > many of my other JSPs. That included JSP will need > > to > > > have Struts tags in it and will receive 2 > > parameters. > > > > > > I've tried using <jsp:include> like so: > > > > > > <jsp:include page="../include/LovLookup.jsp"> > > > <jsp:param name="form" > > value="TalkIndirectForm"/> > > > <jsp:param name="field" > > value="laborAcctCode"/> </jsp:include> > > > > > > But the Struts tags inside the included JSP did > > not > > > get resolved. > > > > > > Here is the included JSP: > > > > > > <td styleClass="lov_icon"> > > > <html:img src="../images/find.jpg" > > > altKey="listLovCodes" > > > onclick="javascript:openLovWindow( <%= "'" + > > > request.getParameter("form") + "', '" + > > > request.getParameter("field") + "'"%> )"/> > > > </td> > > > > > > The resultant HTML still has the <html:img> in it > > -- > > > it was not resolved into a <img>. I've tried > > adding > > > > > > <%@ taglib uri="/WEB-INF/struts-html.tld" > > > prefix="html" %> > > > > > > to the top of the included JSP but to no avail. > > > > > > I haven't tried using <bean:include> because I > > want to > > > use parameters and didn't see in the documentation > > > where <bean:include> recognized nested parameter > > tags. > > > > > > Any suggestions? > > > > > > TIA > > > > > > __________________________________________________ > > > Do you Yahoo!? > > > Yahoo! Platinum - Watch CBS' NCAA March Madness, > > live on your > > > desktop! http://platinum.yahoo.com > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: > > [EMAIL PROTECTED] > > > > > __________________________________________________ > Do you Yahoo!? > Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your > desktop! http://platinum.yahoo.com > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]