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" %>

<% } %>
0 Comments  (click to add your comment)
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



About | Sitemap | Contact