Skip to content

Commit 1187d91

Browse files
committed
공지사항 전반적인 수정
1 parent 8878ebe commit 1187d91

File tree

5 files changed

+17
-6
lines changed

5 files changed

+17
-6
lines changed

src/main/java/kopo/poly/controller/NoticeController.java

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,20 @@ public String noticeList(HttpSession session, ModelMap model)
5959
List<NoticeDTO> rList = Optional.ofNullable(noticeService.getNoticeList())
6060
.orElseGet(ArrayList::new);
6161

62+
// List<NoticeDTO> rList = noticeService.getNoticeList();
63+
//
64+
// if (rList == null) {
65+
// rList = new ArrayList<>();
66+
// }
67+
6268
// 조회된 리스트 결과값 넣어주기
6369
model.addAttribute("rList", rList);
6470

6571
// 로그 찍기(추후 찍은 로그를 통해 이 함수 호출이 끝났는지 파악하기 용이하다.)
6672
log.info(this.getClass().getName() + ".noticeList End!");
6773

68-
// 함수 처리가 끝나고 보여줄 HTML (Thymeleaf) 파일명
69-
// templates/notice/noticeList.html
74+
// 함수 처리가 끝나고 보여줄 JSP 파일명
75+
// webapp/WEB-INF/views/notice/noticeList.jsp
7076
return "notice/noticeList";
7177

7278
}
@@ -85,8 +91,8 @@ public String NoticeReg() {
8591

8692
log.info(this.getClass().getName() + ".noticeReg End!");
8793

88-
// 함수 처리가 끝나고 보여줄 HTML (Thymeleaf) 파일명
89-
// templates/notice/noticeReg.html
94+
// 함수 처리가 끝나고 보여줄 JSP 파일명
95+
// webapp/WEB-INF/views/notice/noticeReg.jsp
9096
return "notice/noticeReg";
9197
}
9298

@@ -190,6 +196,8 @@ public String noticeInfo(HttpServletRequest request, ModelMap model) throws Exce
190196

191197
log.info(this.getClass().getName() + ".noticeInfo End!");
192198

199+
// 함수 처리가 끝나고 보여줄 JSP 파일명
200+
// webapp/WEB-INF/views/notice/noticeInfo.jsp
193201
return "notice/noticeInfo";
194202
}
195203

@@ -225,6 +233,8 @@ public String noticeEditInfo(HttpServletRequest request, ModelMap model) throws
225233

226234
log.info(this.getClass().getName() + ".noticeEditInfo End!");
227235

236+
// 함수 처리가 끝나고 보여줄 JSP 파일명
237+
// webapp/WEB-INF/views/notice/noticeEditInfo.jsp
228238
return "notice/noticeEditInfo";
229239
}
230240

src/main/resources/mapper/NoticeMapper.xml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@
3535
AND N.NOTICE_SEQ = #{noticeSeq}
3636
</select>
3737

38-
39-
4038
<!-- 조회수 증가 쿼리 -->
4139
<update id="updateNoticeReadCnt" parameterType="NoticeDTO">
4240
UPDATE NOTICE SET

src/main/webapp/WEB-INF/views/notice/noticeEditInfo.jsp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
<%@ page import="kopo.poly.util.CmmUtil" %>
44
<%@ page import="kopo.poly.dto.NoticeDTO" %>
55
<%
6+
// NoticeController 함수에서 model 객체에 저장된 값 불러오기
67
NoticeDTO rDTO = (NoticeDTO) request.getAttribute("rDTO");
78
%>
89
<!DOCTYPE html>

src/main/webapp/WEB-INF/views/notice/noticeInfo.jsp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
<%@ page import="kopo.poly.dto.NoticeDTO" %>
44
<%@ page import="kopo.poly.util.CmmUtil" %>
55
<%
6+
// NoticeController 함수에서 model 객체에 저장된 값 불러오기
67
NoticeDTO rDTO = (NoticeDTO) request.getAttribute("rDTO");
78
%>
89
<!DOCTYPE html>

src/main/webapp/WEB-INF/views/notice/noticeList.jsp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<%@ page import="kopo.poly.dto.NoticeDTO" %>
55
<%@ page import="kopo.poly.util.CmmUtil" %>
66
<%
7+
// NoticeController 함수에서 model 객체에 저장된 값 불러오기
78
List<NoticeDTO> rList = (List<NoticeDTO>) request.getAttribute("rList");
89
%>
910
<!DOCTYPE html>

0 commit comments

Comments
 (0)