RE: RV: Manage Results obtained from ResultSets

2002-11-20 Thread SANZ SANFRUCTUOSO, Manuel

Thanks for your aid. My problem is solved.

-Mensaje original-
De: Shawn Bayern [mailto:[EMAIL PROTECTED]]
Enviado el: lunes 18 de noviembre de 2002 14:43
Para: Tag Libraries Users List
Asunto: RE: RV: Manage Results obtained from ResultSets


On Mon, 18 Nov 2002, SANZ SANFRUCTUOSO, Manuel wrote:

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

You first need to expose it as a scoped variable.  Instead of --

 % Result r = ResultSupport.toResult(rs; %

-- simply write

 % pageContext.setAttribute(r,  ResultSupport.toResult(rs)); %

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




RE: RV: Manage Results obtained from ResultSets

2002-11-18 Thread SANZ SANFRUCTUOSO, Manuel

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]




RE: RV: Manage Results obtained from ResultSets

2002-11-18 Thread Shawn Bayern
On Mon, 18 Nov 2002, SANZ SANFRUCTUOSO, Manuel wrote:

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

You first need to expose it as a scoped variable.  Instead of --

 % Result r = ResultSupport.toResult(rs; %

-- simply write

 % pageContext.setAttribute(r,  ResultSupport.toResult(rs)); %

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




RV: Manage Results obtained from ResultSets

2002-11-14 Thread SANZ SANFRUCTUOSO, Manuel

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?

Thanks.

Manuel Sanz.

--
To unsubscribe, e-mail:   mailto:taglibs-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:taglibs-user-help;jakarta.apache.org




Re: RV: Manage Results obtained from ResultSets

2002-11-14 Thread Shawn Bayern
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:taglibs-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:taglibs-user-help;jakarta.apache.org