struts默认定义的几个标签是不支持嵌套的。

解决方案 »

  1.   

    那这么能完成我想要实现的功能呢?
    就是将 <logic:iterate id="result" name="list" type="<bean:write name="className" scope="request"/>">
    中的type变为动态的??
      

  2.   

    用EL表达式语言,前提是你使用的是JSP2.0以上版本(Tomcat5.0),servlet2.4以上版本(web.xml文件头:
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app xmlns="http://java.sun.com/xml/ns/j2ee"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
        version="2.4">
    ):
    <logic:iterate id="result" name="list" type="${className}">
       something.....
    </logic:iterate>
      

  3.   

    lip009(深蓝忧郁) 兄弟说的也不行啊~~
    怎么办啊?
      

  4.   

    用<logic:iterate id="result" name="list" type="<%=request.getAttribute("className")%>">肯定是可以的,是你代码的问题
      

  5.   

    <logic:iterate id="result" name="list" type="<%=request.getAttribute("className")%>">
    肯定是没问题的,你说的不行,不会是request里面根本没className?