struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dalibor Kezele" <d.kez...@ecom.hr>
Subject Re: how to number of rows in resultset without <% ...>
Date Mon, 19 Nov 2001 09:29:36 GMT
From: "Bradley M. Handy" <bhandy@jack-of-all-trades.net>
To: "'Struts Users Mailing List'" <struts-user@jakarta.apache.org>

> Try this.
> 
> ResultSet resultSet = <execute query here to return a result set>
> int numRows = 0;
> if(resultSet.last()) {
> numRows = resultSet.getRow();  // return the row id.
> }
> One thing to note is if your ResultSet is not setup to for
> bi-directional reading, you will lose the use of your ResultSet doing
> this.
> 
That's okay, but I would like to do this without using java.

Something like:
<html:select property="segment" multiple="true" size="<sql:getSize/>">

TIA,



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


Mime
View raw message