tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Allen <>
Subject RE: Pass varable in <%@include %> statement in jsp
Date Sun, 24 Sep 2000 17:28:57 GMT

The type of include that you are trying to do is done at compile time
(i.e. the variable won't be known). Use <jsp:include> instead.
That does the include at run time (remember, there is a performance
penalty for this...).


Date: Fri, 22 Sep 2000 20:16:27 -0700
From: "fifi129  " <>
Subject: Pass varable in <%@include %> statement in jsp
Message-ID: <>

Can anybody tell me can I pass a variable in a include statment.
I've try it as
<%@ include file = "<%=abc%>" %>
but error meggage prompt out.

I am working in a page need to include different page in different cases
(if-else loop)
And lots of variable share between the page and the included page. so It
is not efficient to use
<jsp:include page = ""/>

Best regards,

--== Sent via ==--
Before you buy.

View raw message