F
Falk Köppe
Hello,
I have a problem using a variable within a JSP include directive. The
following code does not work for me:
<%
String page = "examplepage.jsp";
%>
<@ include file="<%= page %>" %>
or
<@ include file="${page}" %>
or
<@ include file=page %>
Is it possible to use a variable within a JSP include directive? I
know that I could use a variable within a JSP include action
(<jsp:include page="<%= page %>" /> or <jsp:include page="${page}" />)
but the content of my page does not change very often, so it should be
included at compile time.
Cheers
Falk Köppe
I have a problem using a variable within a JSP include directive. The
following code does not work for me:
<%
String page = "examplepage.jsp";
%>
<@ include file="<%= page %>" %>
or
<@ include file="${page}" %>
or
<@ include file=page %>
Is it possible to use a variable within a JSP include directive? I
know that I could use a variable within a JSP include action
(<jsp:include page="<%= page %>" /> or <jsp:include page="${page}" />)
but the content of my page does not change very often, so it should be
included at compile time.
Cheers
Falk Köppe