<%@ page language="java" contentType="text/html; charset=EUC-KR"
    pageEncoding="EUC-KR"%>
    <%@ page session="true" %>
<!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 style = " text-align : center; ">
<h2>메 인 페 이 지</h2>
<hr>
<%
String id = (String) session.getAttribute("id");
if (id != null) {
	%>
	<%=id %> 님 반갑습니다.<Br>
	<%
}
%>
<%
if (id == null) {
	%>
	<A href="http://localhost:8080/woo/NewMemberForm.jsp" >회원가입</p>
	<A href="http://localhost:8080/woo/NewMemberLogin.jsp" >로그인</p>
	<%
} else if (id.equals("admin")) {
	%>
	<A href="http://localhost:8080/woo/testlogout.jsp" >로그아웃</p>
	<A href="http://localhost:8080/woo/NewMemberList.jsp" >회원목록</p>
	<%
} else {
	%>
	<A href="http://localhost:8080/woo/testlogout.jsp" >로그아웃</p>
	<A href="http://localhost:8080/woo/editForm.jsp" >개인정보수정</p>
	<A href="http://localhost:8080/woo/deleteForm.jsp" >회원탈퇴</p>
	<%
}
%>

</body>
</html>