You are viewing a plain text version of this content. The canonical link for it is here.
Posted to taglibs-user@tomcat.apache.org by "Agrawal, Anuj (Anuj)** CTR **" <ag...@lucent.com> on 2002/03/03 02:20:27 UTC
using variables
I have executed a query which always returns me a single record set.
Is the best way to obtain the information for that *single* row by using:
<c:forEach var="result" begin="1" items="$myQuery.rows">
<c:set var="field1Value" value="$result.get('field1')"/>
</c:forEach>
Basically, i'm wondering if there is a way WITHOUT using <c:forEach> to
obtain values for the 1st (only) record returned by the query.
Thanks.
Anuj.
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>