Hi:

Did this to access a simple Java bean that has a method that returns a
cached rowset.

import : javax.servlet.jsp.jstl.sql.*


// Using static methods of the imported class.

Result r =
ResultSupport.toResult(your_Method_that_Returns_a_cached_recordset);
pageContext.setAttribute("r", r);


....

<c:forEach items="${r.columnNames}" var="col">
      <th><c:out value="${col}"/></th>
    </c:forEach>

Stefan

----- Original Message -----
From: "Poornima Shrihari" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, October 09, 2002 11:41 PM
Subject: DBtags ( accessing the Result Set returned from the DAO )


hi all,

I have a query on dbtags tag library.

I have an enterprise application where the DAO accesses the database and
returns the ResultSet to the JSP ( via EJB ).
How can I access this ResultSet directly in the JSP ( without using the
sql:query tag ).

Thanks,
poornima






--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to