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:27:00 GMT
From: "Richard Yee" <ryee@cruzio.com>
To: "Struts Users Mailing List" <struts-user@jakarta.apache.org>

> >         <% int i = 0; %>
> >         <sql:resultSet id="rsAction" loop="true">
> >          <% i++; %>
> >         </sql:resultSet>
> >         <% String size = "" + i; %>
> >         <sql:query>
> >          SELECT * FROM MYTABLE
> >         </sql:query>
> >         <html:select property="segment" multiple="true" size="<%=size
%>">
> >
""""""""""""""""""""""""""""""""""""
> Try SELECT COUNT() FROM mytable
> That should return the # of records returned.
>
But how to put it into size attribute without using <%=...%> ?

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