Shawn Bayern wrote:
On Wed, 30 Oct 2002, Lorenzo Sicilia wrote:


I have tried this:
pageContext.findAttribute("elenco").getRowsByIndex()
the error is:

*** Error: No method named "getRows" was found in type "java/lang/Object".

I need read the fields and colums with a for.

This is one of the advantages of JSTL.  When you use scriptlets, you have
to cast the result of pageContext.findAttribute() to the right type.
sorry but I am very newbie :o)

my script:

<%
 ResultSet pippo = (ResultSet) pageContext.findAttribute("elenco");
 out.print(pippo.getRows());
%>

it don't work. The problem is the cast. the error is:


   411.  ResultSet pippo = (ResultSet) pageContext.findAttribute("elenco");
         ^-------^
*** Error: Type ResultSet was not found.

Thanks very much

Lorenzo Sicilia


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

Reply via email to