OK, but... How can I manage this Result object "r" with JSTL core tags? 

I've tried it of the following way:

...
<% Result r = ResultSupport.toResult(rs; %>
...
<c:forEach items="${r.rows}" var="reg">
  <c:out value="${reg.field_name"/> 
  ...
  etc

but I don't obtain anything, not even error.

If I use <%= r.getRowCount %>, for example, the JSP shows the correct number
of rows of the Result object, but not using <c:out value="${r.rowCount}"/>
(the JSP shows nothing).

What I'm doing bad?

Thanks.

-----Mensaje original-----
De: Shawn Bayern [mailto:[EMAIL PROTECTED]]
Enviado el: jueves 14 de noviembre de 2002 16:06
Para: Tag Libraries Users List
Asunto: Re: RV: Manage Results obtained from ResultSets


On Thu, 14 Nov 2002, SANZ SANFRUCTUOSO, Manuel wrote:

> Has anybody used the ResultSupport class?
> 
> I'd like to call a JavaBean to give me back a JSTL Result objet to be
> able to process it as if I would have had it from a <sql:query>
> action. I don`t know how to get this object in my JSP and manage it.
> 
> There are some articles that say something about it, but none of them
> give examples.
> 
> Can anybody help me?

The ResultSupport class should do what you want, assuming that you're
starting with a JDBC ResultSet object.  Usage works just like this:

  Result r = ResultSupport.toResult(resultSet);

-- 
Shawn Bayern
"JSTL in Action"   http://www.manning.com/bayern


--
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]>

Reply via email to