I'm trying to
dynamically generate a ssi directive and im not sure if this is
possible.
i have the following
code:
<HTML><BODY>
<%
String x = "date.jsp";
%>
String x = "date.jsp";
%>
<A HREF="<%= x
%>">foo</A>
<!--#include file="date.jsp" -->
<!--#include file="date.jsp" -->
</BODY></HTML>
This generates a
PageCompilation file because it can't find the file because x seems to resolve
to
the empty string,
this is running from the samples\calendar directory. and it gives the
following error:
jsp.PageCompileException: 12, 31: can't read file
.\jsp\samples\calendar\
This href link
generates fine however the include file command doesnt. The odd thing is
that
it's not like it
tries to load a file called .\jsp\samples\calendar\<% x %> it actually
does parse and resolve
the expression to
something, it just comes out the empty string.
Thanks,
Komal
Sethi
<%=x%>
