Thank you for the reply, but it didn't work for me,
the logo variable was null.
Regards, Ilana Shay.
-----Original Message-----
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 05, 2000 11:55 AM
To: [EMAIL PROTECTED]
Subject: Re: how to use jsp include tag
"Shay, Ilana" wrote:
> Hi,
> Is anybody know how to process parameters through that
<jsp:include>
> file? I tried the following:
>
> <jsp:include page="Myframe.jsp" flush="true" />
> <jsp:params>
> <jsp:param name="CompanyLogo" value="CanonLogo.png" />
> <jsp:param name="Banner" value="TopDigitalHome.png" />
> <jsp:param name="StrNumber" value="1" />
> <jsp:param name="leftLine" value="LeftLine.png" />
> </jsp:params>
> </jsp:include>
>
> But I don't know how to process the parameter in the "Myframe.jsp" file.
>
Within the included page, you would access these parameters the same way
that you
would access request parameters included with an original request -- either
by
using them in a <jsp:setProperty> element, or using a scriptlet like this:
<%
String logo = request.getParameter("CompanyLogo");
%>
By the way, according the spec you only use "<jsp:params>" inside a
<jsp:plugin> --
not inside a <jsp:include>.
>
> Thanks in advance.
>
> Ilana Shay.
>
Craig McClanahan
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
FAQs on JSP can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html