%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <% //session 사용 String id = (String) session.getAttribute("memberId"); String name = (String) session.getAttribute("memberName"); %>
<%@page import="java.net.URLDecoder"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%
//session 사용
String id = (String) session.getAttribute("memberId");
String name = (String) session.getAttribute("memberName");
%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>index</title>
</head>
<body>
<h1>index</h1>
<br>
<%if(id == null) {%>
<a href="member/writeForm.jsp">회원가입</a>
<br><br>
<a href="member/loginForm.jsp">로그인</a>
<%} else { %>
<a href="member/logout.jsp">로그아웃</a>
<br><br>
<a href="member/modifyForm.jsp">회원정보 수정</a>
<br><br>
<a href="board/boardWriteForm.jsp">글쓰기</a>
<%} %>
</body>
</html>