J
Joona I Palaste
Can I somehow dynamically decide which JSP file to include in another
JSP file, using the <%@include%> tag? Specifically, what I want to do is
something like this:
In the main JSP file:
String jspFile = getJSPFileName();
<%@include file= jspFile %>
So that the value of the variable jspFile is the name of the JSP file
being included in the main JSP file. I don't want to use a chain of
if (jspFile.equals("...")) statements, as that would defeat my whole
purpose.
Thanks for your help!
JSP file, using the <%@include%> tag? Specifically, what I want to do is
something like this:
In the main JSP file:
String jspFile = getJSPFileName();
<%@include file= jspFile %>
So that the value of the variable jspFile is the name of the JSP file
being included in the main JSP file. I don't want to use a chain of
if (jspFile.equals("...")) statements, as that would defeat my whole
purpose.
Thanks for your help!