现在我有个项目代码
就是不知道以前的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???

解决方案 »

  1.   

    用最新JDK1.5试下~~如果过时的话 API也会写明的
    static String format(String format, Object... args) 
              使用指定的格式字符串和参数返回一个格式化字符串。 
    API1.5中没写过时 应该没问题
      

  2.   

    我用的是:build 1.5.0_06-b05版本,还是不行呀
      

  3.   

    你的问题不够具体
    request.setAttribute("count",count);
    request.setAttribute("pageNum",pageNum);
    request.setAttribute("totalPage",(count-1)/pageSize+1);
    request.setAttribute("index",index);
    比如:count是什么类型,你这里应该是基本类型吧
    要是不能放基本类型。你直接转换为对象类型不就可以拉
      

  4.   

    request.setAttribute("count",count);
    request.setAttribute("pageNum",pageNum);
    request.setAttribute("totalPage",(count-1)/pageSize+1);
    request.setAttribute("index",index);后面的必须是object类型  封装一下吧