I don't think you can use variables in static file includes using the <%@
include ... %> include directive. If you want to use variables for the file
name, use the <jsp:include> tag instead. This does a run-time server side
include and allows variable substitution.

-----Original Message-----
From: Vinod [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 30, 2000 5:31 AM
To: [EMAIL PROTECTED]
Subject: Re: Using the include file tag
Importance: High


Try <%@ include file="<%= variable name %>.jsp" %>

Vinod

-----Original Message-----
From: David Reck [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 30, 2000 9:39 AM
To: [EMAIL PROTECTED]
Subject: Using the include file tag


Does anyone know how to use the <%@ include file="" %> tag with a variable
as
the file name.  I need to be able to select the file to include at runtime
and I
thought assigning a variable to the file name would be the easiest way.

Thanks,

Dave

*******************Internet Email Confidentiality Footer*******************


Privileged/Confidential Information may be contained in this message.  If
you
are not the addressee indicated in this message (or responsible for delivery
of
the message to such person), you may not copy or deliver this message to
anyone.
In such case, you should destroy this message and kindly notify the sender
by
reply email. Please advise immediately if you or your employer do not
consent to
Internet email for messages of this kind.  Opinions, conclusions and other
information in this message that do not relate to the official business of
my
firm shall be understood as neither given nor endorsed by it.

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