목록페이징 (1)
정미나닷컴
[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