急!!!怎样才能这样取出它的值?
各位高手帮帮忙:
怎样才能这样取出它的值?
public class PersonOperate{
public List queryById(String id) {
List list = null;
hql = "From Person as p where p.id=? ";
Query q = this.session.createQuery(hql);
q.setString(0, id);
list = q.list();
this.session.close();
return list;
}
}
.....
<jsp:useBean id= "acc " class= "com.yy.PersonOperate " />
<c:set var= "id " value= "${abc.queryById} " />
<html>
<body>
${id.name}
......
------解决方案--------------------上面定义的是acc,下面写的是abc
------解决方案--------------------呵呵,误操作啊。。害了自己