hyunjeong

Untitled

Aug 29th, 2019
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.26 KB | None | 0 0
  1. <%@ page language="java" contentType="text/html; charset=UTF-8"
  2. pageEncoding="UTF-8"%>
  3. <%@ page import = "java.io.PrintWriter" %>
  4. <html>
  5. <head>
  6. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  7. <title>JSP 게시판 웹사이트</title>
  8. <link rel="stylesheet" href="css/bootstrap.css">
  9. <link rel="stylesheet" href="css/custom.css">
  10. </head>
  11. <body>
  12. <%
  13. String userId = null;
  14. if(session.getAttribute("userId") != null ) {
  15. userId = (String) session.getAttribute("userId");
  16. }
  17. %>
  18. <nav class= "navbar navbar-default">
  19. <div class="navbar-header">
  20. <button type="button" class="navbar-toggle collapsed" data-toggle="collapse"
  21. data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
  22. <span class="icon-bar"></span>
  23. <span class="icon-bar"></span>
  24. <span class="icon-bar"></span>
  25. </button>
  26. <a class="navbar-brand" href="login.jsp">JSP게시판 웹 사이트</a>
  27. </div>
  28. <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
  29. <ul class="nav navbar-nav">
  30. <li class="active"><a href="main.jsp">메인</a></li>
  31. <li><a href="bbs.jsp">게시판</a></li>
  32. </ul>
  33. <%
  34. if(userId == null) {
  35. %>
  36. <ul class="nav navbar-nav navbar-right">
  37. <li class="dropdown">
  38. <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button"
  39. aria-haspopup="true" aria-expanded="false" >
  40. 접속하기<span class=caret></span>
  41. </a>
  42. <ul class="dropdown-menu">
  43. <li><a href="login.jsp">로그인</a></li>
  44. <li><a href="join.jsp">회원가입</a></li>
  45. </ul>
  46. </li>
  47. </ul>
  48. <%
  49. } else {
  50. %>
  51. <ul class="nav navbar-nav navbar-right">
  52. <li class="dropdown">
  53. <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button"
  54. aria-haspopup="true" aria-expanded="false" >
  55. 회원관리<span class=caret></span>
  56. </a>
  57. <ul class="dropdown-menu">
  58.  
  59. <li><a href="logoutAction.jsp">로그아웃</a></li>
  60. </ul>
  61. </li>
  62. </ul>
  63. <%
  64. }
  65. %>
  66. </div>
  67. </nav>
  68. <div class="container">
  69. <div class="jumbotron">
  70. <div class="container">
  71. <h1>해운대팬션</h1>
  72. <p>하늘소리바다소리</p>
  73. <a class="btn btn-primary btn-pull" href="#" role="button">자세히 알아보기</a>
  74. </div>
  75. </div>
  76. </div>
  77. <div class="container">
  78. <div id="myCorousel" class="carousel" data-ride="carousel">
  79. <ol class="carousel-indicators">
  80. <li data-target="#myCarousel" data-slide-to="0" class="active"></li>
  81. <li data-target="#myCarousel" data-slide-to="1"></li>
  82. <li data-target="#myCarousel" data-slide-to="2"></li>
  83. </ol>
  84. <div class="carousel-inner">
  85. <div class="item active">
  86. <img src="images/b1.jpg">
  87. </div>
  88. <div class="item">
  89. <img src="images/b2.jpg">
  90. </div>
  91. <div class="item">
  92. <img src="images/b3.jpg">
  93. </div>
  94. </div>
  95. <a class="left carousel-control" href="#myCarousel" data-slide="prev">
  96. <span class="glyphicon-chevron-left"></span>
  97. </a>
  98. <a class="right carousel-control" href="#myCarousel" data-slide="next">
  99. <span class="glyphicon-chevron-right"></span>
  100. </a>
  101. </div>
  102. </div>
  103. <script src="https://code.jquery.com/jquery-3.1.1.min.js"></script>
  104. <script src="js/bootstrap.js"></script>
  105.  
  106. </body>
  107. </html>
Add Comment
Please, Sign In to add comment