*
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 Android Security Essentials Live Lessons this week in the Android 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
Author

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
Rancher

Joined: Jul 15, 2009
Posts: 377

Hey,

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.

Sean


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: http://aspose.com/file-tools
 
subject: display Data on JSP through Hibernate Criteria Query
 
Similar Threads
Unable to fetch data on a specific JSP....getting error "HTTP Status 404 - /getData.do"... help.
Unable to display the Data from SQL SERVER 2005 on a JSP through <c:forEach> tags
request Vs Response object in web application
Help me to Update only selected Fields and not all the columns in database through hibernate ??
Please explain theoretically how the Hiber. Criteria Query works for selecting records from Database