File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes display Data on JSP through Hibernate Criteria Query Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "display Data on JSP through Hibernate Criteria Query " Watch "display Data on JSP through Hibernate Criteria Query " New topic

display Data on JSP through Hibernate Criteria Query

Vinod Vinu
Ranch Hand

Joined: Aug 30, 2009
Posts: 217
Iam using criteria query to put SELECT clause. iam able to display data on console in eclipse from database.
Following is the Action Class:-

i want to display it on JSP. How can i achieve it
please help me
thanks in advance

Vinod Kumar Nair
"Any fool can write code that a computer can understan. Good programmers write code that humans can understand."
Sean Clark

Joined: Jul 15, 2009
Posts: 377


Typically you would add your List to the request and then use JSTL tag library (or Strut's own taglib - I haven't really used Struts) to output the list into a table in the JSP.
You may also want to read up on EL in JSP.


I love this place!
Nishan Patel
Ranch Hand

Joined: Sep 07, 2008
Posts: 684

If you want to display pagination with your list given by hibernate Criteria refer below link ..

Show List At Jsp

Thanks, Nishan Patel
SCJP 1.5, SCWCD 1.5, OCPJWSD Java Developer,My Blog
I agree. Here's the link:
subject: display Data on JSP through Hibernate Criteria Query
Similar Threads
Help me to Update only selected Fields and not all the columns in database through hibernate ??
request Vs Response object in web application
Please explain theoretically how the Hiber. Criteria Query works for selecting records from Database
Unable to fetch data on a specific JSP....getting error "HTTP Status 404 - /"... help.
Unable to display the Data from SQL SERVER 2005 on a JSP through <c:forEach> tags