You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Java Web Application
Hello,
is it possible to use variables within a JSP include directive? The
following code does not work for me:
<%
String page = "example.jsp";
%>
<@ include file="<%= page %>" %>
or
<@ include file="${page}" %>
or
<@ include file=page %>
I know that I could use the JSP include action (<jsp:include page="$
{page}" />), but I want to include the page at compile time, because
it almost never changes. Is there a way to use variables within a JSP
include directive?