21.01.16 JSPCommunity 프로젝트(확인메세지창, head.jspf, foot.jspf 도입)
2021. 1. 16. 17:38ㆍJAVA/JSP Community 사이트 프로젝트
<detail.jsp>
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ page import="java.util.Map"%>
<%@ page import="java.util.List"%>
<%@ page import="com.sbs.example.jspCommunity.dto.Article"%>
<%
Article article = (Article) request.getAttribute("article");
String pageTitle = "게시물 상세보기";
%>
<%@ include file="../../part/head.jspf" %>
<h1><%=article.getId() + "번"%> <%=pageTitle%></h1>
<div style="font-size:1.2rem;">
번호 :
<%=article.getId()%>
<br />
작성일 :
<%=article.getRegDate()%>
<br />
수정일 :
<%=article.getUpdateDate()%>
<br />
작성자 :
<%=article.getExtra_memberName()%>
<br />
제목 :
<%=article.getTitle()%>
<br />
내용 :
<%=article.getBody()%>
<br />
게시판 :
<%=article.getExtra_boardName()%>
<br>
<br>
<button type="button"><a style="text-decoration:none;" href="doModifyForm?id=<%=article.getId()%>&boardId=<%=article.getBoardId()%>&memberId=<%=article.getMemberId()%>&title=<%=article.getTitle()%>&body=<%=article.getBody()%>">수정</a></button>
<button onclick="if(confirm('정말 삭제하시겠습니까?') == false) {return false;}" type="button"><a style="text-decoration:none;" href="doDelete?id=<%=article.getId()%>">삭제</a></button>
<hr>
<button type="button"><a style="text-decoration:none;" href="list?boardId=<%=article.getBoardId()%>">리스트로 돌아가기</a></button>
</div>
<%@ include file="../../part/foot.jspf" %>
<head.jspf>
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<!doctype html>
<html lang="ko">
<head>
<meta charset="UTF-8" />
<title><%=pageTitle%></title>
</head>
<body>
<foot.jspf>
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
</body>
</html>
'JAVA > JSP Community 사이트 프로젝트' 카테고리의 다른 글
21.01.19 JSPCommunity 프로젝트(중복코드 통합, session도입, 권한 체크 방식 개선 등) (0) | 2021.01.19 |
---|---|
21.01.18 JSPCommunity 프로젝트(EL, JSTL도입, 회원가입,로그인 기능 추가(feat.form check())) (0) | 2021.01.18 |
21.01.11 JSPCommunity 프로젝트(form, redirect 도입) (0) | 2021.01.11 |
21.01.07 servlet & JSP 연계 연습(게시판별 게시물 리스팅, 상세보기, 생성, 수정 , 삭제 등) (0) | 2021.01.07 |
TomCat, Servlet, 전송방식(GET/POST) 개념 (0) | 2020.12.28 |