반응형
<%
int count;
%>
<h3>A sample <%= count %></h3>
<% if ("foo".equals(request.getParameter("a"))) { %>
<h3>Foo!</h3>
<% } else { %>
<h3>Bar!</h3>
<% } %>
접기
velocity의 경우 :
접기
<jsp:directive.page velocity='true'/>
#{
int count;
}#
<h3>A sample ${count}</h3>
#if ("foo" == params.a)
<h3>Foo!</h3>
#else
<h3>Bar!</h3>
#end