现在我有个项目代码
就是不知道以前的jdk是什么配置,
方正都是错,wo 我把出错的地方都写在这里,请问我需要jdk1.5 ***,还是jdk1.4***,谢谢了//以下提示类型不匹配
request.setAttribute("count",count);
request.setAttribute("pageNum",pageNum);
request.setAttribute("totalPage",(count-1)/pageSize+1);
request.setAttribute("index",index);//以下提示参数不对
ucs2 += String.format("%04x",(int)chs[i]);是什么版本的jdk???
就是不知道以前的jdk是什么配置,
方正都是错,wo 我把出错的地方都写在这里,请问我需要jdk1.5 ***,还是jdk1.4***,谢谢了//以下提示类型不匹配
request.setAttribute("count",count);
request.setAttribute("pageNum",pageNum);
request.setAttribute("totalPage",(count-1)/pageSize+1);
request.setAttribute("index",index);//以下提示参数不对
ucs2 += String.format("%04x",(int)chs[i]);是什么版本的jdk???
static String format(String format, Object... args)
使用指定的格式字符串和参数返回一个格式化字符串。
API1.5中没写过时 应该没问题
request.setAttribute("count",count);
request.setAttribute("pageNum",pageNum);
request.setAttribute("totalPage",(count-1)/pageSize+1);
request.setAttribute("index",index);
比如:count是什么类型,你这里应该是基本类型吧
要是不能放基本类型。你直接转换为对象类型不就可以拉
request.setAttribute("pageNum",pageNum);
request.setAttribute("totalPage",(count-1)/pageSize+1);
request.setAttribute("index",index);后面的必须是object类型 封装一下吧