본문 바로가기

콩's EDUCATION/콩's JSP&SERVLET

표현언어, empty연산자

${empty st}<br>
${empty ""}<br>
${empty array}<br>
${empty map}<br>

 

값이 null이면 true 리턴

 

<%
String st = null;
int[] array = new int[0];
Map<String,String> map = new HashMap<String,String>();
%>

 

[결과]