98..Etc/velocity
velocity로 java 문법 사용하기
1010
2009. 1. 23. 15:06
반응형
<%
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