daew galera
estou me quebrando para fazer um listar com hibernate
com exemplo que peguei aqui no guj
Na classe amigoDao fiz o metodo assim:
public java.util.List getList(String hql) {
Session session = factory.openSession();
List amigo = session.createQuery(hql).list();
session.flush();
session.close();
return amigo;
}
ai na pagina para listar fiz assim:
<%
amigoDAO d = new amigoDAO();
List<Amigo> lista =d.getList("from Amigo");
for(Amigo p:lista) {
out.print(p.getNome());
}
%>
e da esse erro aqui:
HTTP Status 500 -
type Exception report
message
descriptionThe server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: PWC6033: Error in Javac compilation for JSP
PWC6197: An error occurred at line: 35 in the jsp file: /index.jsp
PWC6199: Generated servlet error:
string:///index_jsp.java:82: cannot find symbol
symbol : class amigoDAO
location: class org.apache.jsp.index_jsp
tentei fazer de outros jeitos mas tb n to conseguindo
vlw…