String[] str=request.getParameterValues("dirname");

解决方案 »

  1.   

    request.setAttribute("name",dirname)
    String[] dirname = (String[])request.getAttribute("name") ;
    name随便起. 建议最好用Vector,ArryList之类的 ------------------------------------------------------
               我们还年轻牛奶会有的奶牛也会有的 
                 可天天在 csdn 混这些会有吗 ??
      

  2.   

    使用struts可放在ActionForm中回传
    只需要在ActionForm中定义相同的数组即可
    挺方便的,不妨试试
      

  3.   

    你用list呀,数组一般都用list传送
    list也是数组
    在servlet这么写:
    List xxx  =null;  
    xxx="这里写你的查询得到的值";;//就是给xxx赋值
    request.setAttribute("xxx",xxx);然后你在jsp就可以得到它了