%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%
MemberBean bean = new MemberBean();
bean.setId("001");
bean.setPwd("1234");
bean.setName("manA");
bean.setEmail("[email protected]");
%>
ex05.jsp
empty
\${empty "data" } : ${empty "data" }
\${empty null } : ${empty null }
\${empty "" } : ${empty "" }
<%-- empty 확인할 때 jsp 액션태그로 생성해야 확인 가능... --%>
\${empty manA } : ${empty manA }
\${empty manB } : ${empty manB }
\${not empty manB } : ${not empty manB }
">
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%
MemberBean bean = new MemberBean();
bean.setId("001");
bean.setPwd("1234");
bean.setName("manA");
bean.setEmail("[email protected]");
%>
ex05.jsp
empty
\${empty "data" } : ${empty "data" }
\${empty null } : ${empty null }
\${empty "" } : ${empty "" }
<%-- empty 확인할 때 jsp 액션태그로 생성해야 확인 가능... --%>
\${empty manA } : ${empty manA }
\${empty manB } : ${empty manB }
\${not empty manB } : ${not empty manB }
">
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%
MemberBean bean = new MemberBean();
bean.setId("001");
bean.setPwd("1234");
bean.setName("manA");
bean.setEmail("[email protected]");
%>
ex05.jsp
empty
\${empty "data" } : ${empty "data" }
\${empty null } : ${empty null }
\${empty "" } : ${empty "" }
<%-- empty 확인할 때 jsp 액션태그로 생성해야 확인 가능... --%>
\${empty manA } : ${empty manA }
\${empty manB } : ${empty manB }
\${not empty manB } : ${not empty manB }
">
<%@page import="bean.MemberBean"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%
MemberBean bean = new MemberBean();
bean.setId("001");
bean.setPwd("1234");
bean.setName("manA");
bean.setEmail("[email protected]");
%>
<jsp:useBean id="manB" class="bean.MemberBean"></jsp:useBean>
<jsp:setProperty name="manB" property="name" value="manB"/>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>ex05.jsp</title>
</head>
<body>
<h1>empty</h1>
<br>
<h2>
\\${empty "data" } : ${empty "data" } <br>
\\${empty null } : ${empty null } <br>
\\${empty "" } : ${empty "" } <br>
<br>
<%-- empty 확인할 때 jsp 액션태그로 생성해야 확인 가능... --%>
\\${empty manA } : ${empty manA }<br>
\\${empty manB } : ${empty manB }<br>
\\${not empty manB } : ${not empty manB }<br>
</h2>
</body>
</html>