File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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: 689

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