首先 a和b表映射
jsp
给a.action发送id ---
${ pageContext.request.contextPath }/a.action?id=1"
a.action 用模型驱动接受id
通过id查询a
a = this.getHibernateTemplate().get(A.class, id);
jsp
给a.action发送id ---
${ pageContext.request.contextPath }/a.action?id=1"
a = this.getHibernateTemplate().get(A.class, id);