Try :

<jsp:include page="IncludedPage.jsp" flush="true">
        <jsp:param name="parentPage" value="includingPage.jsp" />
</jsp:include>

Best regards,
Dorin.

-----Original Message-----
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Luong, Dat
Sent: Tuesday, May 16, 2000 10:15 PM
To: [EMAIL PROTECTED]
Subject: Re: <jsp:include> and <jsp:param> does not work. Please help.


Hi Kevin,

Thanks for your response. I need to pass the parameter into
the IncludedPage that's why I use the way I posted in the question
unless you have the other way to pass the parameter into the IncludedPage.
The question is posted again here for reference.

****************
*includingPage.jsp
*****************
<jsp:include page="IncludedPage.jsp">
        <jsp:param name="parentPage" value="includingPage.jsp" />
</jsp:include>

****************
*includedPage.jsp
*****************
parentPage:<%=request.getParameter("parentPage") %>     // create syntax
error

parentPage:<% request.getParameter("parentPage") %>     // syntax ok but
doesnot work

                                                thanks

-----Original Message-----
From: Kevin Cowan [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 16, 2000 1:28 PM
To: [EMAIL PROTECTED]
Subject: Re: <jsp:include> and <jsp:param> does not work. Please help.


all your jsp include needs is a / and not the end tag, like so:

<jsp:include page="IncludedPage.jsp"/>


This code will include your page.


-----Original Message-----
From: Luong, Dat [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 16, 2000 12:54 PM
To: [EMAIL PROTECTED]
Subject: <jsp:include> and <jsp:param> does not work. Please help.


Hi

I'm using JSP version 1.0 on VisualAge for Java and I can not get the
following code working. Any hint will be highly appreciated.

****************
*includingPage.jsp
*****************
<jsp:include page="IncludedPage.jsp">
        <jsp:param name="parentPage" value="includingPage.jsp" />
</jsp:include>

****************
*includedPage.jsp
*****************
parentPage:<%=request.getParameter("parentPage") %>     // create syntax
error

parentPage:<% request.getParameter("parentPage") %>     // syntax ok but
doesnot work

                                                thanks

===========================================================================
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

===========================================================================
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