<%@ page language="java" contentType="text/html; charset=EUC-KR"
    pageEncoding="EUC-KR"%>
    <% 
    String str;
    if(session.getAttribute("name")!=null){
    str="어서오세요"+session.getAttribute("name")+"님!";
 	 %><div id="top"><a href="logout.jsp">로그아웃</a>
 	 <a href="form/updatef.jsp">비밀번호,이름 변경</a>
 	 <a href="form/deletef.jsp" style="float:right">회원탈퇴</a>
 	 <a href="LIST.jsp">리스트 보기</a>
 	 </div><% ;
    }else{
   	str="";
    }
    %>
<!DOCTYPE html>
<html>
<head>
<style>
*{background:#ffc; margin:0px;}
a{text-decoration:none; cursor:pointer; color:black;}
a:hover{color:red; cursor:pointer;}
#top{height:20px; background:#555; }
#top a{background:#555; color:#fff;}
#top a:hover{color:red; cursor:pointer;}
#main{margin-top:50px;}
</style>
<meta charset="EUC-KR">
<title>환영합니다!</title>
</head>
<body>
<div id="main">
<h3>메인페이지에 온것을 환영합니다.</h3>
	<%=str %><br>
	<% if(session.getAttribute("name")==null){%>
<a href="form/loginf.jsp">로그인</a><br><br>
<a href="form/registerf.jsp">회원가입</a>
<%} %>

</div>
</body>
</html>