%@page import="java.util.List"%>
<%@page import="school.dao.SchoolDAO"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%
SchoolDAO dao = new SchoolDAO();
List list = dao.getList();
String codeStn = "";
%>
<%@ include file="/layout/header.jsp"%>
<%if(list == null) { %>
데이터가 없습니다..
<%} else { %>
이 름 |
VALUE |
CODE |
<% for(SchoolDTO dto : list) { %>
<%=dto.getName() %> |
<%=dto.getValue() %> |
<%
switch(dto.getCode()){
case 1:
codeStn="학 생"; break;
case 2:
codeStn="교 수"; break;
case 3:
codeStn="관리자"; break;
}
%>
<%=codeStn %>
|
<% } %>
<%} %>
<%@ include file">
<%@page import="java.util.List"%>
<%@page import="school.dao.SchoolDAO"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%
SchoolDAO dao = new SchoolDAO();
List list = dao.getList();
String codeStn = "";
%>
<%@ include file="/layout/header.jsp"%>
<%if(list == null) { %>
데이터가 없습니다..
<%} else { %>
이 름 |
VALUE |
CODE |
<% for(SchoolDTO dto : list) { %>
<%=dto.getName() %> |
<%=dto.getValue() %> |
<%
switch(dto.getCode()){
case 1:
codeStn="학 생"; break;
case 2:
codeStn="교 수"; break;
case 3:
codeStn="관리자"; break;
}
%>
<%=codeStn %>
|
<% } %>
<%} %>
<%@ include file">
<%@page import="java.util.List"%>
<%@page import="school.dao.SchoolDAO"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%
SchoolDAO dao = new SchoolDAO();
List list = dao.getList();
String codeStn = "";
%>
<%@ include file="/layout/header.jsp"%>
<%if(list == null) { %>
데이터가 없습니다..
<%} else { %>
이 름 |
VALUE |
CODE |
<% for(SchoolDTO dto : list) { %>
<%=dto.getName() %> |
<%=dto.getValue() %> |
<%
switch(dto.getCode()){
case 1:
codeStn="학 생"; break;
case 2:
codeStn="교 수"; break;
case 3:
codeStn="관리자"; break;
}
%>
<%=codeStn %>
|
<% } %>
<%} %>
<%@ include file">
<%@page import="school.dto.SchoolDTO"%>
<%@page import="java.util.List"%>
<%@page import="school.dao.SchoolDAO"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%
SchoolDAO dao = new SchoolDAO();
List<SchoolDTO> list = dao.getList();
String codeStn = "";
%>
<%@ include file="/layout/header.jsp"%>
<div align="center">
<%if(list == null) { %>
<h2>데이터가 없습니다..</h2>
<%} else { %>
<table border="1">
<tr>
<th width="120px"> 이 름 </th>
<th width="140px"> VALUE </th>
<th width="120px"> CODE </th>
</tr>
<% for(SchoolDTO dto : list) { %>
<tr>
<td><%=dto.getName() %></td>
<td><%=dto.getValue() %></td>
<td>
<%
switch(dto.getCode()){
case 1:
codeStn="학 생"; break;
case 2:
codeStn="교 수"; break;
case 3:
codeStn="관리자"; break;
}
%>
<%=codeStn %>
</td>
</tr>
<% } %>
</table>
<%} %>
</div>
<%@ include file="/layout/footer.jsp"%>