231227 HTML employees
2023. 12. 27. 19:50ㆍ2023.11.21-2024.05.31
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
<%@page import="com.sukgi.db.EmployeesDTO"%>
<%@page import="java.util.List"%>
<%@page import="com.sukgi.db.EmployeesDAO"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>직원 목록</title>
</head>
<body>
<H1>직원 목록</H1>
<!-- 1. import DAO -->
<%
//자바영역입니다.
EmployeesDAO dao = new EmployeesDAO();
List<EmployeesDTO> list = dao.selectEmployees();
%>
<!--2. 값 받기 -->
<!--3. 값 출력 -->
<table border='1'>
<tr>
<td>emp_no</td>
<td>birth_date</td>
<td>first_name</td>
<td>last_name</td>
<td>gender</td>
<td>hire_date</td>
</tr>
<%
for(int i = 0; i< list.size(); i++){
%>
<tr>
<td><%=list.get(i).getEmp_no() %></td>
<td><%=list.get(i).getBirth_date() %></td>
<td><%=list.get(i).getFirst_name() %></td>
<td><%=list.get(i).getLast_name() %></td>
<td><%=list.get(i).getGender() %></td>
<td><%=list.get(i).getHire_date() %></td>
</tr>
<%
}
%>
</table>
</body>
</html>
|
cs |
'2023.11.21-2024.05.31' 카테고리의 다른 글
240102 프로그래머스 피자 나눠 먹기 2 (0) | 2024.01.02 |
---|---|
글씨체, 배경 색 (1) | 2023.12.28 |
231227 HTML index (0) | 2023.12.27 |
231227 JAVA DepartmentsDAO (0) | 2023.12.27 |
231227 JAVA DepartmentsDTO (0) | 2023.12.27 |