本帖最后由 java522123428 于 2011-10-28 13:42:09 编辑

解决方案 »

  1.   


        <s:if test="productCategoryTreeList!=null">
            <s:select   list="productCategoryTreeList" 
                        headerValue="----------"
                listKey="id"     listValue="name" 
            </s:select>    
       </s:if>LZ你确定上面的逻辑+代码没问题
      

  2.   

    没对吧。。中间还有个判断是否是顶层的语句啊而且这段代码应该是,productCategoryTreeList里面是装的list的productCategory型、select中要去的是productCategory的id和name。。你这样是直接取productCategoryTreeList了。。不对啊