On Mon, 1 Apr 2002, James Hazel wrote:

> my jsp code is:
> <sql:query var="stuff" dataSource="${dataSource}"
>             >SELECT * FROM articles</sql:query>
> 
> <c:out value="Query completed.  Rows returned are: " />
> <c:out value="$stuff.getSize()" />
> 
> I configured the dataSource as a class implementing the javax.sql.DataSource
> interface and use it in other places to create the database, but the above
> query always returns as if the 'stuff' variable is not initialized: "Query
> completed.  Rows returned are:$stuff.getSize()"

I think you're just using the expression incorrectly.  You want to write

  <c:out value="${stuff.size}" />

instead.

-- 
Shawn Bayern
Author, "JSP Standard Tag Library"  http://www.jstlbook.com
(coming this summer from Manning Publications)


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

Reply via email to