hi,
i used the dynamic include tag and in the included file, i had the following
lines:
<%
String p1 = (String)request.getAttribute("var1");
%>
p1: <%=p1%>
however, i got this error:
Java Server Page Translation Error
Error during page parsing:
com.sun.server.http.pagecompile.jsp.compiler.ParseException:
/jsp/JavaWebServer2.0/examples/jsp/samples/testcells/messcli/mcli.jsp(19,39)
Unterminated
any ideas??
thanks,
maurice
> X-Unix-From: [EMAIL PROTECTED] Mon Aug 7 18:16:18 2000
> Date: Mon, 7 Aug 2000 18:36:29 +0200
> From: Caspar van Vroonhoven <[EMAIL PROTECTED]>
> Subject: Re: How do you access parameters in an included JSP?
> Comments: To: A mailing list about Java Server Pages specification and
reference <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
>
> You've closed the jsp include tag too early. It should be like this:
>
> <jsp:include page="inner.jsp" >
> <jsp:param name="var1" value="var1" />
> <jsp:param name="var2" value="var2" />
> <jsp:param name="var3" value="var3" />
> </jsp:include>
>
> have fun!
>
>
> Caspar van Vroonhoven
> www.tradingcars.com
> Amsterdam, The Netherlands
>
> -----Original Message-----
> From: A mailing list about Java Server Pages specification and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of JeffRyan
> Sent: Monday, August 07, 2000 6:05 PM
> To: [EMAIL PROTECTED]
> Subject: How do you access parameters in an included JSP?
>
>
> How do you access parameters in an included JSP?
>
> I understand that I can pass parameters to an included JSP as follows.
>
> <jsp:include page="inner.jsp" />
> <jsp:param name="var1" value="var1" />
> <jsp:param name="var2" value="var2" />
> <jsp:param name="var3" value="var3" />
> </jsp:include>
>
> However, in inner.jsp, how to I read these parameters? I've tried the
> following on Web Logic 4.51 with no luck.
> <%
> String p1 = (String)request.getAttribute("var1");
> %>
> p1: <%=p1%>
>
> Thanks in advance for your help.
>
> An optimist sees an opportunity in every calamity, a pessimist sees calamity
> in every opportunity. - Winston Churchill
>
> Jeff Ryan
> [EMAIL PROTECTED]
>
> ===========================================================================
> 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
Re: How do you access parameters in an included JSP?
Maurice Coyle - Sun ireland - Software Products and Platforms - Internationalization Engineer Fri, 11 Aug 2000 08:00:59 -0700
