velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve O'Hara" <soh...@pivotal-solutions.co.uk>
Subject Problem handling null values
Date Wed, 03 Nov 2004 12:31:58 GMT

I've got a table that outputs values from a 2 dimensional array of Strings;

<table>
    #foreach ($Item in $Results)
    <tr>
        #foreach ($Field in $Item)
            <td>$Field</td>
        #end
    </tr>
    #end
</table>

This works fine except when it comes across a null string in $Field.
What it actually does is output the previous non-null value for $Field.

I assume this is a bug?

Steve


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


Mime
View raw message