Thanks Serge. Exactly what I needed!

David Schwartz

-----Original Message-----
From: Serge Knystautas [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 01, 2004 10:08 AM
To: Tag Libraries Users List
Subject: Re: Single row query result

David Schwartz wrote:
> Is it possible to output values from a query result that has only one row
-
> without usinf <c:forEach>?
> For example, I have many queries that will only return one row. Currently,
> if I want to output a column value I do...
>
> <c:forEach items="${myQuery.rows}" var="row" varStatus = "stat" >
> output etc.
>
> </c:forEach>
>
> I'm looking for a more direct way to access the column value.

<c:out value="${myQuery.rows[0].myColumn}" />

--
Serge Knystautas
President
Lokitech >> software . strategy . design >> http://www.lokitech.com
p. 301.656.5501
e. [EMAIL PROTECTED]

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

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

Reply via email to