<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Tra
nsitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<style type="text/css">
#main_menu {

	font-size:12px;
	color:black;
	 
	background-color:lightgreen;
	margin-top:15px;
	padding:12px;
	text-align:center;
}
#main_menu li{
	padding:0 20px 0 20px;
	display:inline;
}
</style>


<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>홈페이지</title>
</head>
<body bgcolor="lightblue">
<ul id="main_menu">
<%
Object id=session.getAttribute("id");
%>
<%
if(id==null){
%>
<li><a href="http://localhost:8080/Test_Project/aa/inputForm.jsp">회원가입</a></li>
<li><a href="http://localhost:8080/Test_Project/aa/loginForm.jsp">로그인</a></li>
<%
}else{
%>
<li><a href="http://localhost:8080/Test_Project/aa/list.jsp">전체회원 목록보기</a></li>
<li><a href="http://localhost:8080/Test_Project/aa/editForm.jsp">회원정보 수정</a></li>
<li><a href="http://localhost:8080/Test_Project/aa/deleteForm.jsp">회원탈퇴</a></li>
<li><a href="http://localhost:8080/Test_Project/aa/Logout.jsp"><input type="submit" value="로그아웃"></a></li>
<%
out.println(id);
out.println("님 환영합니다.");
}
%>
</ul>
<center><h1>Welcome!!!</h1></center>

</body>
</html>