<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>

<%
String id = (String) session.getAttribute("id");

            // 로그인 안되었을 경우 - 로그인, 회원가입 버튼을 보여준다.
            if(session.getAttribute("id")==null){ 
        %>
             
           <a href="main.jsp?contentPage=NewFile.jsp">회원가입</a>
            <a href="main.jsp?contentPage=NewFile2.jsp">로그인</a>
            
            
        <%
        }else if(id.equals("admin")){ 
        %>
            <a href="main.jsp?contentPage=logout.jsp">로그아웃</a>
            <a href="main.jsp?contentPage=Updatefir.jsp">나의 정보</a>
             <a href="main.jsp?contentPage=memberlist.jsp">회원정보보기</a>
             <a href="main.jsp?contentPage=delete.jsp">탈퇴하기</a>
        <%    }else{ 
        %>
            <a href="main.jsp?contentPage=logout.jsp">로그아웃</a>
            <a href="main.jsp?contentPage=Updatefir.jsp">나의 정보</a>
            <a href="main.jsp?contentPage=delete.jsp">탈퇴하기</a>
           
        <%    }    %> 

<a href="main.jsp">메인으로</a>
</body>
</html>