解决方案 »

  1.   

    ${a.sets.点}这里报错 
    Property 'content' not found on type org.hibernate.collection.PersistentSet 
    An exception occurred processing JSP page /adminleft.jsp at line 71 68: 69: 
     
    70:  71: ${a.sets.content} 72:  73:  74: ${a.sets.replyTime} Stacktrace:  
      

  2.   


    ${a.sets.content}
    //sets不是一个单独的entity对象,它是一个集合,还得对它进行循环才能调用content属性
      

  3.   

    如果你想输出content的大小,可以引入JSTL的FN函数标签库这样写:${fn:length(a.sets.content)}参考地址:
    http://jun1986.iteye.com/blog/1067107