submit提交到另一页<form action="page2.jsp?caishu=?????">or <script>
function aa()
{
   document.location.href=page2.jsp?canshu=????
}
</script>
<input type=button onclick="aa()">

解决方案 »

  1.   

    使用request,request.getDispathcer().forword(reqeust,response)
      

  2.   

    难道你禁用了session?方法很多,不过象传数组这样的最好还是用session,因为数据太多了,又连接不好管理,用application你如果不定时清除会造成资源浪费,如果再存到数据库或一个磁盘文件如xml中,则取出来麻烦,用submit你必须把每一个元素分开,可以放到连接后面,也可以用隐藏对象,不过都复杂呀,呵呵,不好办呀。
      

  3.   

    我已经用session传递了数组值,但是保存的是整个数组的值,我的数组可能有大量的值,我不需要每个都用seesion传递到下个页面,可能只需要传递少量的,不知道如何使用seesion保存数组中的单个值,这是我写的代码:
    session.putValue("inputStra[id-1]",inputStr1[id-1]);
    String [] inputStr1[id-1]=(String []) session.getValue("inputStra[id-1]");
    这样好象不行!然后我又试了这样的方法:
    inputStra[id-1]= request.getParameter("inputStr1[id-1]"); 没有报错,但是并没有取到值。