So you got it to work? Stef ----- Original Message ----- From: "Poornima Shrihari" <[EMAIL PROTECTED]> To: "Tag Libraries Users List" <[EMAIL PROTECTED]> Sent: Thursday, October 10, 2002 1:59 AM Subject: Re: DBtags ( accessing the Result Set returned from the DAO )
> Stefan, > dont bother, i found the answer myself as i read through the spec. > thanks a lot... > poornima > > > ----- Original Message ----- > From: "Poornima Shrihari" <[EMAIL PROTECTED]> > To: "Tag Libraries Users List" <[EMAIL PROTECTED]> > Sent: Thursday, October 10, 2002 3:47 PM > Subject: Re: DBtags ( accessing the Result Set returned from the DAO ) > > > > hi Stefan, > > > > Would this ( JSTL tag library ) work for a SQL results set? > > The JSTL spec lists the data types that are supported for "items" in the > > forEach tag. And it incluses Arrays, java.util.Collection etc. It does not > > mention SQL. > > > > Thanks, > > poornima > > > > > > ----- Original Message ----- > > From: "Stefan" <[EMAIL PROTECTED]> > > To: "Tag Libraries Users List" <[EMAIL PROTECTED]> > > Sent: Thursday, October 10, 2002 2:25 PM > > Subject: Re: DBtags ( accessing the Result Set returned from the DAO ) > > > > > > > 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]> > > > > > > -- > > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>