用text hidden一上来就把option的值全部存好然后提交,不就可以了

解决方案 »

  1.   

    java.lang.String[] getParameterValues(java.lang.String name) 
              Returns an array of String objects containing all of the values the given request parameter has, or null if the parameter does not exist.
      

  2.   

    读取option的value     for (i=0;i<=aselect.options.length!=0;i++){
            v = aselect.options[i].value;
         } 
    删除select中的option
         for (i=0;i<=aselect.options.length!=0;i++){
            aselect.options[i]=null;
            aselect.options.remove(i);
         } 添加option
           aselect.add(document.createElement("OPTION"));
           aselect.options[j].text=labels; 
           aselect.options[j].value=values;
      

  3.   

    getParameterValues()。
    比如select的name是btsel,表单里面设一个变量,比如tempsel.
    var url = "xxx.screen?";
    if(typeof(btsel)!="undefined")
    {
         for (i=0;i<btsel.options.length;i++)
         {
            if(i=btsel.options.length-1)
            url += "tempsel="+btsel.options[i].value;
            else
            url += "tempsel="+btsel.options[i].value+"&";
         } 
    }
    document.yourform.action = url;
    document.yourform.submit();
    然后你再用getParameterValues(tempsel),就OK了。
      

  4.   

    上面这位兄弟的方法固然可行,但在URL里传值的长度是受限的,,,所以有没有换个别的方法啊??高手看过来啊