EMPView.jsp

Web/JSP 2011. 5. 31. 09:26 Posted by Request

<%@page import="net.board.db.BoardBean"%>
<%@page import="java.util.List"%>
<%@ page language="java" contentType="text/html; charset=EUC-KR"
    pageEncoding="EUC-KR"%>
<%@page import="java.util.ArrayList"%>
<%@ page import="net.board.db.BoardDAO"  %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=EUC-KR">
<title>Insert title here</title>
</head>
<body>
<%
 String code = request.getParameter("code");
 String title= request.getParameter("title");

out.print(code);
out.print("<BR>");
out.print(title);
%>
<Table border="1" Style="border-collapse:collapse">
 <Tr>
  <Td>no</Td>
  <Td>name</Td>
 </Tr>
 <%
 BoardDAO bs = new BoardDAO();
  
 List arr = null;
 
 
 arr = bs.getBoardList();
 BoardBean bean = null;
 
 
 for(int i = 0 ; i <arr.size(); i++){
  bean = (BoardBean)arr.get(i);
%>
 <Tr>
  <Td><%=bean.getBOARD_NUM() %></Td>
  <Td><%=bean.getBOARD_NAME() %></Td>
 </Tr>
<%  
 }
%>
</Table>
 
</body>
</html>