问题:我是想在index.jsp中把一个list传给 departmentList.jsp,然后再循环显示index.jsp  <iframe width="870" src="zhanghao/departmentList.jsp?v=${requestScope.typeList}" border="0" frameborder="0" scrolling="no">
              </iframe>
departmentList.jsp <c:forEach var="department" items="<%=request.getParameter("v") %>">
报错
 /zhanghao/departmentList.jsp(24,43) Attribute value request.getParameter("v")  is quoted with " which must be escaped when used within the value

解决方案 »

  1.   

    用request.setAttribute("list",list);传值
    url参数传不了list值
      

  2.   

    items="<%=request.getParameter("v") %>">
    引号错了
    双引号里面要用单引号
      

  3.   

    <c:forEach var="department" items="<%=request.getParameter('v') %>">
    这样才行
      

  4.   

    wangjiangbo2
    你自己测试  在下定论   我都把list里元素的地址取出来啦,cfd406635982
    request.getParameter()  里参数类型是String   怎么能用''号呢,别乱说String javax.servlet.ServletRequest.getParameter(String name)
      

  5.   


    /zhanghao/departmentList.jsp(24,43) Attribute value request.getParameter("v") is quoted with " which must be escaped when used within the value下个金山词霸我懒得和你说
      

  6.   

    zxxwlj
    你说引号错啦   能给正确的写法吗