본문 바로가기
728x90
반응형

분류 전체보기712

[JSP] JSTL에서의 인덱스 사용방법 출처http://marobiana.tistory.com/9 - JSTL에서의 인덱스 사용방법부터!!! ${status.count} 이렇게 하면 포가 돌때마다 카운트가 증가한다.만약 5번 돌았다면,12345 가 출력됐을것이다. ${status.count} 말고도 다른것도 있다.${status.index} 라고 쓰면 0부터 시작이 된다. (count는 1부터 시작) 출처: http://marobiana.tistory.com/9 [Take Action] 2017. 1. 21.
[JSP] Illegal text inside "c:choose" tag: JSTL오류 출처http://m.blog.naver.com/sontaemoo/70106360327 원래 소스는 아래와 같았다. 이렇게 사용하니 choose 태그 밑의 바로 밑 부분 주석을 인식을 못했다. 그래서 아래와 같이 바꾸니 아주 잘 되었다.(별게다 속썩여..) 2017. 1. 21.
[Java] 코드리스트와 가져온리스트 비교 public List getSearchUseynList() { if(this.searchUseynList != null) { List list = new ArrayList(); for(CodeModel c : this.searchUseynList) { list.add(c); } return list; } else { return null; } } 2017. 1. 20.
[Java] 리스트에서 같은 번호 제외하고 카운트 // 화면에서 받아온 리스트에서 같은 번호 제외하고 카운트 int tempRtnumListCnt = 0; String tempRtnum = ""; for(String rtnum: rtnumList){ if(!tempRtnum.equals(rtnum)){ tempRtnumListCnt++; tempRtnum = rtnum; } } logger.debug("rtnumListCnt ==" + tempRtnumListCnt); String rtnumListCnt = Integer.toString(tempRtnumListCnt); 2017. 1. 20.
[Java] Debug import org.apache.log4j.Logger;Logger log = Logger.getLogger(this.getClass());log.debug(""); 2017. 1. 19.
728x90
반응형