diff --git a/src/main/java/cokr/xit/foundation/web/AbstractController.java b/src/main/java/cokr/xit/foundation/web/AbstractController.java
index ba2abdc..d6097de 100644
--- a/src/main/java/cokr/xit/foundation/web/AbstractController.java
+++ b/src/main/java/cokr/xit/foundation/web/AbstractController.java
@@ -5,6 +5,7 @@ import java.io.FileInputStream;
import java.io.InputStream;
import java.net.URLEncoder;
import java.util.Collection;
+import java.util.Map;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletResponse;
@@ -141,6 +142,44 @@ public abstract class AbstractController extends AbstractComponent {
.addObject(prefix + "Total", bounded.getTotalSize());
}
+ /**ModelAndView에 list와 페이징 정보를 설정한다.
+ * 예를 들어 setPagingInfo(mav, list, "prefix")
와 같이 호출하면
+ * mav에 다음과 같이 설정한다.
+ *
{
+ * "prefixList": list,
+ * "prefixPagingInfo": {
+ * "start": list.getStart(),
+ * "fetchSize": list.getFetchSize(),
+ * "totalSize": list.getTotalSize()
+ * }
+ * }
+ * @param mav ModelAndView
+ * @param collection Collection
+ * @param prefix 접두어
+ * @return ModelAndView
+ */
+ protected ModelAndView setPagingInfo(ModelAndView mav, Collection> collection, String prefix) {
+ if (collection instanceof BoundedList) {
+ BoundedList> bounded = (BoundedList>)collection;
+ Map