Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

display Data on JSP through Hibernate Criteria Query

 
Vinod Vinu
Ranch Hand
Posts: 217
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Sean Clark
Rancher
Posts: 377
Android Java Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Nishan Patel
Ranch Hand
Posts: 689
Eclipse IDE Java Scala
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you want to display pagination with your list given by hibernate Criteria refer below link ..

Show List At Jsp
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic