▣ include/header.jsp
페이지 정보
본문
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Model2 MVC 패턴</title>
<link rel="stylesheet" href="/css/basic.css">
<script src="http://code.jquery.com/jquery-1.12.4.min.js"></script>
<script src="http://code.jquery.com/jquery-migrate-1.4.1.min.js"></script>
</head>
<body>
sessionScope.id : ${sessionScope.id }<br>
sessionScope.name : ${sessionScope.name }<br>
sessionScope.level : ${sessionScope.level }<br>
<table width=100% height=50>
<tr>
<td><a href="/">[로고]</a></td>
<td align="right">
<c:if test="${sessionScope.level eq '10' }">
<a href="/admin/">[관리자]</a>
</c:if>
<c:choose>
<c:when test="${sessionScope.id != null }">
<a href="/member/logout">[로그아웃]</a>
<a href="/member/modify">[회원수정]</a>
</c:when>
<c:otherwise>
<a href="/member/login">[로그인]</a>
<a href="/member/join">[회원가입]</a>
</c:otherwise>
</c:choose>
</td>
</tr>
</table>
<hr>
- 이전글◆ 관리자 아이디 설정 ( Level : 10 ) 23.03.17
- 다음글● 회원가입, 로그인, 회원수정, 로그아웃 ( 디렉토리 구조 및 jstl.jar 추가 ) 23.03.17
댓글목록
등록된 댓글이 없습니다.