Quick Tip: How to Add Syntax Highlighting to Any Project

时间:2023-01-19 00:46:46

Quick Tip: How to Add Syntax Highlighting to Any Projectpublic String showAllArticleForPage() throws Exception{HttpServletRequest request = ServletActionContext.getRequest();String username=(String) ActionContext.getContext().getSession().get("user");System.out.println("showAllArticleForPage===发表文章和改动文章后跳转的页面
=username="+username);String pageIndexS = request.getParameter("pageIndex");Integer pageIndex = 1;Boolean pcOrmobile=HttpRequestDeviceUtils.isMobileDevice(request);System.out.println("pcOrmobile=="+HttpRequestDeviceUtils.isMobileDevice(request));if(pcOrmobile){
return "mobile";}if(!"".equals(pageIndexS) && pageIndexS != null){pageIndex = Integer.parseInt(request.getParameter("pageIndex"));request.setAttribute("pageIndex", pageIndex);}//request.setAttribute("pager", articleService.showAllArticleForPageByUsername(username,pageIndex));//request.setAttribute("pager",
articleService.showAllArticleForPage(pageIndex));request.setAttribute("type", "sign");return "articlesList";}