File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Wei Geng
Greenhorn
Posts: 28
  • 0
  • Mark post as helpful
  • send pies
  • 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!
 
Pavan Tummala
Ranch Hand
Posts: 74
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ResultSets on jsp? Thats a crime dont u know
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic