์ ๋ ๋ชจ๋ฐ์ผ๊ฒ์ ๊ฐ๋ฐ์ ๋๊ณ ์ถ์ด์ ๋ฐฐ์ฐ๊ณ ์๋ ์ฌ๋์ธ๋ฐ.. ์ผ๋จ ๊ณผ์ ์ด ์น ๊ฐ๋ฐ์ชฝ์ผ๋ก ๋์์ด์ ํ๋ก์ ํธ ํ๋๋ฐ์ง๋ฌธํ๋๋ง๋๋ ค๋ ๋ ๊น์..
MVC๋ชจ๋ธ2 ํ๋ก์ ํธ ๋ง๋๋๋ฐ.. ๋ก๊ทธ ๋ค์ฐ์ด๋ดฃ๋๋ฐ ๋ฆฌ์คํธ์๋ด์๋ ์ง๊ฑฐ ๊ฐ์๋ฐ jsp์์ ๋ฆฌ์คํธ๋ฅผ ๋ชป ๋ถ๋ฌ์์..
@RequestMapping(value="/DoctorRequestList", method=RequestMethod.GET)
public String DoctorRequestList(Model model
,@RequestParam(value="currentPage", defaultValue="1") int currentPage
,@RequestParam(value="pagePerRow", defaultValue="10")int pagePerRow) {
logger.debug("DoctorRequestController ์์ DoctorRequestList ์คํ");
Map<String,Object> map = doctorRequestService.doctorRequestList(currentPage, pagePerRow);
logger.debug("1๋ฒ-1"+map);
logger.debug("1๋ฒ"+currentPage);
logger.debug("2๋ฒ"+pagePerRow);
model.addAttribute("lastPage", map.get("lastPage"));
model.addAttribute("currentPage", currentPage);
model.addAttribute("list", map.get("list"));
model.addAttribute("lastBlockPage", map.get("lastBlockPage"));
model.addAttribute("firstBlockPage", map.get("firstBlockPage"));
model.addAttribute("totalBlock", map.get("totalBlock"));
logger.debug("30๋ฒ"+map.get("list"));
return "/doctorrequest/DoctorRequestList";
}
์ปจํธ๋กค๋ฌ๋ถ๋ถ์ ๋๋ค
<body>
<h1>DoctorRequestList</h1>
<form id="DoctorRequestList" action="${pageContext.request.contextPath}/DoctorRequestList" method="POST">
<table>
<thead>
<tr>
<th>๊ฑด๊ฐ์ ๋ณด์์ฒญ์ฝ๋</th>
<th>์์ฌ๊ฐ์ฌ์ฝ๋</th>
<th>ํ์์ฝ๋</th>
<th>์ ๋ชฉ</th>
<th>์์ฒญ๋ด์ฉ</th>
<th>์์ฒญ๋ ์ง</th>
</tr>
</thead>
<tbody>
<c:forEach var="DoctorRequest" items="${list}">
<tr>
<td>${DoctorRequest.RequestHealthInformationNo}</td>
<td>${DoctorRequest.TeacherNo}</td>
<td>${DoctorRequest.MemberNo }</td>
<td>${DoctorRequest.RequestTitle }</td>
<td>${DoctorRequest.RequestContent }</td>
<td>${DoctorRequest.RequestDate }</td>
<%-- <td><a type="button" href="${pageContext.request.contextPath}/modifyBloodsugar?bloodsugarno=${bloodsugar.bloodsugarno}" id="buttonModify">์์ </a></td>
<td><a type="button" href="${pageContext.request.contextPath}/deleteBloodsugar?bloodsugarno=${bloodsugar.bloodsugarno}" id="buttonDelete">์ญ์ </a></td>ย ย --%>
</tr>
์๋ ใ ใ ๋จผ์ฝ๋์ธ๋ฐ ์นํ์ด์ง๊ฐ ์ผ๊ทธ๋ฌ์ง๋
์ผ์ ๋์จ๊ฐ ์ํํด