首页 > 代码库 > Quick Tip: How to Add Syntax Highlighting to Any Project
Quick Tip: How to Add Syntax Highlighting to Any Project
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";}
Quick Tip: How to Add Syntax Highlighting to Any Project
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。