• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

How can I access the ResultSet without ScriptLet mixed in the JSP?

 
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I got a java.sql.ResultSet instance when I executed a query statement in the Servlet. I want to transfer the ResultSet instance to the JSP page to display the query result without ScrpitLet mixed into the JSP page.

It seems that it is a better way to convert the ResultSet instance to a javax.servlet.jsp.jstl.sql.Result object and access the Result object in a <c:forEach>.How can I realize the convertion?

If it cannot be realized, is there any way by which JSP page could access ResultSet object without ScriptLet.

Please introduce the involved methods or patterns.
Thanks!
 
Ranch Hand
Posts: 333
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
http://java.sun.com/products/jsp/jstl/1.1/docs/api/javax/servlet/jsp/jstl/sql/ResultSupport.html
 
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
ResultSets on jsp? Thats a crime dont u know
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic