aspose file tools*
The moose likes JDBC and the fly likes How can I access the ResultSet without ScriptLet mixed in the JSP? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "How can I access the ResultSet without ScriptLet mixed in the JSP?" Watch "How can I access the ResultSet without ScriptLet mixed in the JSP?" New topic
Author

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

Wei Geng
Greenhorn

Joined: Dec 10, 2004
Posts: 28
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!
stu derby
Ranch Hand

Joined: Dec 15, 2005
Posts: 333
http://java.sun.com/products/jsp/jstl/1.1/docs/api/javax/servlet/jsp/jstl/sql/ResultSupport.html
Pavan Tummala
Ranch Hand

Joined: Dec 25, 2004
Posts: 74
ResultSets on jsp? Thats a crime dont u know


If Java had true garbage collection, most programs would delete themselves upon execution -- Robert Sewell
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How can I access the ResultSet without ScriptLet mixed in the JSP?
 
Similar Threads
code or server problem ?
how can i acces database using jsp?
How can I access the ResultSet without ScriptLet mixed in the JSP?
Retrieving and displaying ResultSet in JSP
Can i get a clone of Resultset