使用struts时,在使用entity1.entity2.id提交数据报错no session错误.

一种方便的解决方式:ide

   把entity1关联对象entity2的配置改成lazy="false"对象