两张表做连接查询放在list中,请问怎么在jsp页面显示。用的是ssh 100
用c:foreach不行,这个只能解决单表问题!!!!!!!!!!!!!!!!!!!!!!!查询语句publicListfindstudentgrade(){String...
用c:foreach不行,这个只能解决单表问题!!!!!!!!!!!!!!!!!!!!!!!
查询语句
public List findstudentgrade() {
String sql = "from Grade gd,Student st where gd.id=st.studentid";
List gradelist = getHibernateTemplate().find(sql);
return gradelist;
} 展开
查询语句
public List findstudentgrade() {
String sql = "from Grade gd,Student st where gd.id=st.studentid";
List gradelist = getHibernateTemplate().find(sql);
return gradelist;
} 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询