Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- WAS
- Dispatcher
- 김영한
- JSON형식의 response
- CONTINUE
- 톰캣
- 화면정의서
- sendRedirect
- 다형성 #부모타입 #자식타입
- GET방식
- POST방식
- https://www.inflearn.com/course/lecture?courseslug=%ea%b9%80%ec%98%81%ed%95%9c%ec%9d%98-%ec%8b%a4%ec%a0%84-%ec%9e%90%eb%b0%94-%ea%b8%b0%eb%b3%b8%ed%8e%b8&unitid=194690
- Break
- while문
- Servlet
- https://www.inflearn.com/course/lecture?courseslug=%ea%b9%80%ec%98%81%ed%95%9c%ec%9d%98-%ec%8b%a4%ec%a0%84-%ec%9e%90%eb%b0%94-%ea%b8%b0%eb%b3%b8%ed%8e%b8&unitid=194709&category=questiondetail&tab=community&q=1314387
- Request
- 한글깨짐
- 요구사항정의서
- Spring MVC
- https://www.inflearn.com/course/lecture?courseslug=%ea%b9%80%ec%98%81%ed%95%9c%ec%9d%98-%ec%8b%a4%ec%a0%84-%ec%9e%90%eb%b0%94-%ea%b8%b0%eb%b3%b8%ed%8e%b8&unitid=194711
- xml
- webserver #WAS #ServerApp
- Forwarding
- 피그마
- 매핑 #
Archives
- Today
- Total
Step it up now
controller와 jsp 연결 - 오류 발생 본문
컨트롤러와 jsp 부분의 받아주는 부분이 맞지 않아 화면이 열리지 않았다
"TotalCustomerDetail" - 컨트롤러
@GetMapping("TotalCustomerDetail")
//master_Pk로 받고있고 MasterVO로 받고있음/
public String listDetail(@RequestParam int master_Pk, Model model){
MasterVO masterVO = new MasterVO();
masterVO.setMaster_pk(master_Pk);
logger.info(masterVO.toString());
List<Map<String,Object>>cList = totalCustomerService.Select(masterVO);
model.addAttribute("cList", cList);
return "pages/customerDB/TotalCustomerDetail";
"TotalCustomerList" - jsp
<tbody>
<%
for (int i =0; i < cList.size(); i++){
MasterVO masterVO = cList.get(i);
%>
<tr>
//이 부분도 컨트롤러와 같이 msterVO, Master_pk가 되어야 한다
<td><a href="javascript:customerDataDetail('<%=masterVO.getMaster_pk()%>')"><%=masterVO.getMaster_nm()%></a></td>
<td><%=masterVO.getMaster_username()%></td>
<td><%=masterVO.getMaster_gender()%></td>
<td><%=masterVO.getMaster_bdate()%></td>
<td><%=masterVO.getMaster_email()%></td>
<td><%=masterVO.getMaster_pnumber()%></td>
<td><%=masterVO.getMaster_address()%></td>
</tr>
<%
}
%>
</tbody>
'프로젝트 > 파이널' 카테고리의 다른 글
api사용하여 데이터 받아오기 (0) | 2024.02.29 |
---|---|
controller와 jsp 데이터 넘기기 - 오류 발생 (0) | 2024.02.26 |
내 브랜치에서 작업 중에 push 된 부분 pull하기 (0) | 2024.02.22 |
고객 데이터_비밀번호 암호화하기 (0) | 2024.02.21 |
yml파일의 DB설정 (0) | 2024.02.19 |