@@ -0,0 +1,1427 @@
+package com.unidev.polycms.web;%0A%0Aimport org.apache.catalina.servlet4preview.http.HttpServletRequest;%0Aimport org.springframework.beans.factory.annotation.Autowired;%0Aimport org.springframework.stereotype.Controller;%0Aimport org.springframework.ui.Model;%0Aimport org.springframework.web.bind.annotation.PathVariable;%0Aimport org.springframework.web.bind.annotation.RequestMapping;%0A%0A@Controller%0Apublic class IndexController %7B%0A%0A    @Autowired%0A    private WebPolyCore webPolyCore;%0A%0A    @Autowired%0A    private HttpServletRequest httpServletRequest;%0A%0A    @RequestMapping(%22/%22)%0A    public String page(Model model) %7B%0A%0A        WebPolyQuery polyQuery = WebPolyQuery.polyRequest()%0A                .model(model)%0A                .request(httpServletRequest)%0A                .page(0L);%0A%0A        webPolyCore.addSupportModel(polyQuery).addNew(polyQuery, %22/page/%22);%0A        model.addAttribute(%22view%22, %22index_list%22);%0A        return %22list%22;%0A    %7D%0A%0A    @RequestMapping(%22/page/%7Bpage%7D%22)%0A    public String page(@PathVariable(%22page%22) Long page, Model model) %7B%0A        if (page == null %7C%7C page %3C= 0L) %7B%0A            page = 1L;%0A        %7D%0A        WebPolyQuery polyQuery = WebPolyQuery.polyRequest()%0A                .model(model)%0A                .request(httpServletRequest)%0A                .page(page);%0A        webPolyCore.addSupportModel(polyQuery).addNew(polyQuery, %22/page/%22);%0A        model.addAttribute(%22view%22, %22index_list%22);%0A        return %22list%22;%0A    %7D%0A%0A%7D%0A

Index requests handling