Hi a s h i s h,

Tahnks for your help.

We will try your solution today.

Bernard Granier
Mr Ted
115 rue du Fbg Poissonniere
75009 Paris
www.MrTed.com
Tel : 33 1 55 31 02 65
mail : [EMAIL PROTECTED]


-----Original Message-----
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Ashish Shrestha
Sent: lundi 18 juin 2001 05:35
To: [EMAIL PROTECTED]
Subject: Re: dynamic inlcude and page context


Bernard Granier wrote:
>
> Hi,
>
> Is it possible to do a dynamic include and to keep the page context ?
>
> I mean :
>
> If I used these lines in a test.jsp file :
>
> <% String myUrl = "test2.jsp"; %>
> <jsp:include page="<%=myUrl%>" flush="true" />
>
> In the file test2.jsp I lost the page context of test.jsp.
> Is there a work around ?
>

Yes, put the stuff you need in the request using
request.setAttribute() in the
first page and take it out in the second page using
request.getAttribute()
--
a s h i s h @ j d g n p . o r g
Get Headlines 0.5.4 for free at
http://headlines.sourceforge.net/

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
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".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
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