dcsimg

How can I use the '<%@include file="filename" %>' directive, within an 'if' clause using JSP?

John Zukowski

There is nothing special that needs to be done here to include the file, just be sure to close the if scriptlet piece:


<% if (condition) { %>

<%@ include file="foo.jsp" %>

<% } %>