<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    
<!DOCTYPE html>
<html>
<head>
<style>
body
{
    background-color: #5CD1E5;
}
</style>
<meta charset="UTF-8">
<title>메인페이지</title>
</head>
<body>
<form method="post" action="Logout.jsp">
<table border="10" align="center" bordercolor=#008299>
<tr>
<th width = "800" align="center" colspan="3"  bgcolor=#B2EBF4><H1>안녕하세요!</H1></th>
</tr>
<tr>
<td width = "600" rowspan="3" align="center" bgcolor=#B2EBF4><h5><A href="list.jsp">회원 목록</A></h5></td>
<td width = "100"  align="center" colspan="3" bgcolor=#B2EBF4>
<%
if(session.getAttribute("id")==null)
{
response.sendRedirect("main.jsp");
}
else
{
%>
<strong><%=session.getAttribute("id")%></strong>님 <br> 안녕하세요!
<%}; %>
</tr>
<tr>
<td align="center" bgcolor=#B2EBF4><input type="submit" value="로그아웃"></td>
<td align="center" bgcolor=#B2EBF4><button type="button" class="btn btn-default" onclick="location.href='edit.jsp'">회원수정</button>
</td>
</tr>
</table>
</form>
</body>
</html>
