jgreene78023
Programmer
I'm trying to do a jsp include of a page, the url of which will be determined at runtime, but it doesn't work. Here's an example of what I'm trying to do in my jsp:
<%
String myFilename = "someUrl.jsp"; (determined at runtime)
%>
.
.
.
<body>
.
.
.
<jsp:include page="<%= myFilename %>" flush="true" />
.
.
.
This will not work for me. I've also tried using the include directive syntax, but of course this didn't work either. I did a search on this forum's archives, and found a thread where someone said this could be done exactly as I've tried. Can anyone offer any updated information as to why I cannot do this, or suggestions as to what I might be doing wrong? Thanks so much for any help.
- Joe
<%
String myFilename = "someUrl.jsp"; (determined at runtime)
%>
.
.
.
<body>
.
.
.
<jsp:include page="<%= myFilename %>" flush="true" />
.
.
.
This will not work for me. I've also tried using the include directive syntax, but of course this didn't work either. I did a search on this forum's archives, and found a thread where someone said this could be done exactly as I've tried. Can anyone offer any updated information as to why I cannot do this, or suggestions as to what I might be doing wrong? Thanks so much for any help.
- Joe