까먹지 말자! 자주 보자!
JSP BOARDER(6)_(boardAdmin_CreateBoard.jsp) 본문
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ page import = "java.util.*, board.*;" %>
<!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=UTF-8">
<title>관리자 페이지</title>
</head>
<body>
<%
AdminManager adminManager = AdminManager.getInstance();
if(session.getAttribute("id") != null && adminManager.isAdmin((String)session.getAttribute("id")))
{
%>
<b>*게시판 생성</b>
<form action = "makeBoard.jsp" method = "post" name = "create">
게시판 이름 : <input type = "text" name = "boardName" size = "20"/><br>
게시판 설명 : <textarea name ="boardSubject" cols = "35" rows = "3"></textarea><br>
<input type = "submit" value = "게시판 생성">
</form>
<%
}else {
out.print("관리자 권한이 없습니다.");
}
%>
</body>
</html>
'JSP' 카테고리의 다른 글
JSP BOARDER(7)_(logout.jsp) (0) | 2016.05.24 |
---|---|
JSP BOARDER(5)_(boardAdmin_AdminLogin.jsp) (0) | 2016.05.24 |
JSP BOARDER(4)_(ConnectionPool .java) (0) | 2016.05.24 |
JSP BOARDER(3)_(ConnectionFactory .java) (0) | 2016.05.24 |
JSP BOARDER(2)_(BoardData .java) (0) | 2016.05.24 |