Mr. Dylan Rosario,
        The jsp include directive does the inclusion at compile time when
the jsp is being compiled into a servlet and the jsp include tag does the
inclusion at runtime.
Therefore based on your need the jsp include tag should be used.
Have a nice day.
With regards,
Sachin S. Khanna.
www.emailanorder.com

----- Original Message -----
From: Dylan Rosario <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, February 16, 2001 11:51 PM
Subject: Include Directive


> Hi,
>
> I asked a question about this a while ago but got zero for an answer.
> Probably because I didn't put a lot of background about the problem.
>
> I'm trying to do a dynamic include page or directive based upon a value in
> the URL, some thing like this:
>
> <%@ include
>
file="((request.getParameter("body_val")!=null)?request.getParameter("body_v
> al"):"")" %>
>
> OR
>
> <jsp:include page="" flush="true" >
>     <jsp:param name="body_val" value="body_val" />
> </jsp:include>
>
> History behind this code is :
> I want to assign the value in an include statement at run time based upon
a
> value in the URL.
>
> So if I GET this URL >>>>>    http://.../body2.jsp?body_val=2.jsp
>
> The following page body2.jsp will stuff the value 2.jsp into the include
> directiuve.
> Do I have this all wrong?
>
> Dylan del Rosario
>
>
===========================================================================
> 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