Actually, you don't even need to do this if it is already part of the
current request
it automatically gets passed to the request of jsp:included files as well
....

So you will need param1 below, but not param2 (it'll already be in the
request params).
Brian.

> -----Original Message-----
> From: Flak DiNenno [SMTP:[EMAIL PROTECTED]]
> Sent: 04 August 2000 08:38
> To:   [EMAIL PROTECTED]
> Subject:      Re: Passing param to a included file in a JSP
>
> e.g.
>
>       <jsp:include page="my.jsp">
>         <jsp:param name="param1" value="<%=myparam1%>"/>
>         <jsp:param name="param2"
> value="<%=request.getParameter(\"param2\")%>"/>
>         </jsp:include>
>
> As you can see, the variable you pass to the included JSP, could have been
> a
> HTTP param that was passed to this page, so you can just pass it along to
> the next.
>
> Flak DiNenno
> Director of Technical Innovation
> ----------------------------------
> ClearCross
> 505 8th Avenue
> Suite 1500
> New York, NY 10018
> (212) 714-0440 ext. 3616
> (212) 967-4623 fax
> (ClearCross was formerly known as Syntra)
>
>
>
> > -----Original Message-----
> > From: Saket Raizda [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, August 03, 2000 8:58 PM
> > To: [EMAIL PROTECTED]
> > Subject: Passing param to a included file in a JSP
> >
> >
> > hi folks,
> > I'm puzzled about how to pass parameters to a file(also a jsp) that is
> > included in a jsp file using a jsp:include tag
> > any directions will appreciated.
> > thanks and regards
> > -Saket
> >
> > ==============================================================
> > =============
> > To unsubscribe: mailto [EMAIL PROTECTED] with body:
> > "signoff JSP-INTEREST".
> > Some relevant FAQs on JSP/Servlets can be found at:
> >
> >  http://java.sun.com/products/jsp/faq.html
> >  http://www.esperanto.org.nz/jsp/jspfaq.html
> >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
> >
>
> ==========================================================================
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to