목록java (11)
정미나닷컴
[Java] 자바 페이징 함수
public String getPaging(int totalCount, int currentPage, int pageSize, int pageGroupSize){ String pageStr = ""; int pageGroupCount = totalCount / (pageSize * pageGroupSize) + (totalCount % (pageSize * pageGroupSize) == 0 ? 0 :1); int numPageGroup = (int)Math.ceil((double)currentPage / pageGroupSize); if (totalCount > 0){ int pageCount = (totalCount / pageSize) + (totalCount % pageSize == 0 ? 0 :..
IT
2010. 10. 5. 14:46
[JSP] JSP D-day 계산
curYear){ for(int i=curYear; i
IT
2010. 4. 27. 18:37