hi, Espen.
 you need to use scriptlet for the calculation.
you can do something like
 <logic:equal name="listSize" value="<%= String.valueOf( index.intValue() - 
1 ) %>">
 i hope this will help you.
 ichy

 2005/7/11, Espen Nicolaisen <[EMAIL PROTECTED]>: 
> 
> When I'm iterating through a list I want to check the last element. I want
> to use bean:size and indexId which I declare in logic:iterate. Since the
> index declarered in logic:iterate starts on zero I must check on
> <logic:equal name="listSize" value="index-1">
> 
> How do I subtract 1 from index?
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

Reply via email to