Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <%@ page language="java" contentType="text/html; charset=UTF-8"
- pageEncoding="UTF-8"%>
- <%@ page import = "java.io.PrintWriter" %>
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
- <title>JSP 게시판 웹사이트</title>
- <link rel="stylesheet" href="css/bootstrap.css">
- <link rel="stylesheet" href="css/custom.css">
- </head>
- <body>
- <%
- String userId = null;
- if(session.getAttribute("userId") != null ) {
- userId = (String) session.getAttribute("userId");
- }
- %>
- <nav class= "navbar navbar-default">
- <div class="navbar-header">
- <button type="button" class="navbar-toggle collapsed" data-toggle="collapse"
- data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
- <span class="icon-bar"></span>
- <span class="icon-bar"></span>
- <span class="icon-bar"></span>
- </button>
- <a class="navbar-brand" href="login.jsp">JSP게시판 웹 사이트</a>
- </div>
- <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
- <ul class="nav navbar-nav">
- <li class="active"><a href="main.jsp">메인</a></li>
- <li><a href="bbs.jsp">게시판</a></li>
- </ul>
- <%
- if(userId == null) {
- %>
- <ul class="nav navbar-nav navbar-right">
- <li class="dropdown">
- <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button"
- aria-haspopup="true" aria-expanded="false" >
- 접속하기<span class=caret></span>
- </a>
- <ul class="dropdown-menu">
- <li><a href="login.jsp">로그인</a></li>
- <li><a href="join.jsp">회원가입</a></li>
- </ul>
- </li>
- </ul>
- <%
- } else {
- %>
- <ul class="nav navbar-nav navbar-right">
- <li class="dropdown">
- <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button"
- aria-haspopup="true" aria-expanded="false" >
- 회원관리<span class=caret></span>
- </a>
- <ul class="dropdown-menu">
- <li><a href="logoutAction.jsp">로그아웃</a></li>
- </ul>
- </li>
- </ul>
- <%
- }
- %>
- </div>
- </nav>
- <div class="container">
- <div class="jumbotron">
- <div class="container">
- <h1>해운대팬션</h1>
- <p>하늘소리바다소리</p>
- <a class="btn btn-primary btn-pull" href="#" role="button">자세히 알아보기</a>
- </div>
- </div>
- </div>
- <div class="container">
- <div id="myCorousel" class="carousel" data-ride="carousel">
- <ol class="carousel-indicators">
- <li data-target="#myCarousel" data-slide-to="0" class="active"></li>
- <li data-target="#myCarousel" data-slide-to="1"></li>
- <li data-target="#myCarousel" data-slide-to="2"></li>
- </ol>
- <div class="carousel-inner">
- <div class="item active">
- <img src="images/b1.jpg">
- </div>
- <div class="item">
- <img src="images/b2.jpg">
- </div>
- <div class="item">
- <img src="images/b3.jpg">
- </div>
- </div>
- <a class="left carousel-control" href="#myCarousel" data-slide="prev">
- <span class="glyphicon-chevron-left"></span>
- </a>
- <a class="right carousel-control" href="#myCarousel" data-slide="next">
- <span class="glyphicon-chevron-right"></span>
- </a>
- </div>
- </div>
- <script src="https://code.jquery.com/jquery-3.1.1.min.js"></script>
- <script src="js/bootstrap.js"></script>
- </body>
- </html>
Add Comment
Please, Sign In to add comment