分页取cookie时增加非空判断
This commit is contained in:
@@ -80,7 +80,7 @@ public class Page<T> {
|
|||||||
this(request, response, Integer.valueOf(Configurations.getIntProperty("page.pageSize", 30)));
|
this(request, response, Integer.valueOf(Configurations.getIntProperty("page.pageSize", 30)));
|
||||||
|
|
||||||
try {
|
try {
|
||||||
if(CookieUtil.getValue(request, "Language").equalsIgnoreCase("zh_cn")){
|
if(CookieUtil.getValue(request, "Language")!=null&&CookieUtil.getValue(request, "Language").equalsIgnoreCase("zh_cn")){
|
||||||
prevPage="上一页";
|
prevPage="上一页";
|
||||||
nextPage="下一页";
|
nextPage="下一页";
|
||||||
currentPage="当前";
|
currentPage="当前";
|
||||||
|
|||||||
Reference in New Issue
Block a user