velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "KNOX, Liam, FM" <Liam.K...@rbos.com>
Subject Bug?
Date Thu, 05 Sep 2002 14:12:24 GMT
I am currently displaying a partially populated list and encountering a few
problems
eg
public void simpleTest() {
    List l = new ArrayList();
    for (int i = 0; i < 10 ;++i) {
      if (i==5) {
        l.add(String.valueOf(i));
      }
      else {
        l.add(null);
      }
    }
// set in velocity context
  }

when I display using velocity 
i.e 
<table>

 <!-- #foreach ($s in $strings) -->
  <tr><td>value = $!s</td></tr>
<!-- #end -->
</table>

I get the following 

value =  
value =  
value =  
value =  
value =  
value = 5 
value = 5 
value = 5 
value = 5 
value = 5 

is this a bug??
cheers
Liam



***********************************************************************
      Visit our Internet site at http://www.rbsmarkets.com

This e-mail is intended only for the addressee named above.
As this e-mail may contain confidential or privileged information,
if you are not the named addressee, you are not authorised to
retain, read, copy or disseminate this message or any part of it.
The Royal Bank of Scotland is registered in Scotland No 90312
Registered Office: 36 St Andrew Square, Edinburgh EH2 2YB 
Regulated by the Financial Services Authority
***********************************************************************

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


Mime
View raw message