本帖最后由 mousepc228891 于 2011-08-24 11:43:08 编辑

解决方案 »

  1.   

    ERROR [http-8888-Processor24] portal-web.docroot.html.portal.render_portlet.jsp - tag 'select', field 'list', name 'arrayMessageTypes[0].defaultMsgId': The requested list key '#session.{%{arrayMessageTypes[#stat.index].msgTypeId}}' could not be resolved as a collection/array/map/enumeration/iterator type. Example: people or people.{name} - [unknown location]
      

  2.   

    不懂,这样people.{name}取key
      

  3.   

    The requested list key '#session.{%{arrayMessageTypes[#stat.index].msgTypeId}}' could not be resolved as a collection/array/map/enumeration/iterator type.#session.MCT100 这session中存的是集合吗?
      

  4.   

    简单的说. LZ的问题就是如何把栈顶对象的属性作为session的key去取值?
    是这样的, 如果你这个%{arrayMessageTypes[#stat.index].msgTypeId}东东返回的是个String的话,LZ可以尝试下用#session[arrayMessageTypes[#stat.index].msgTypeId]这种方式去获取, 记得好像存在变量的话是没办法用.这种方式去获取属性的!  如果不是返回String的话自己掉以下String.valueOf看看!好久没玩struts2了, 都快忘了都!哎,公司上网有白名单的, 也只能凭着一点记忆说了!  晚上我回去看看我以前自己写的一点心得,晚上再来回帖
      

  5.   

    izard999,哥们儿,你简直是我的大救星!