struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Newton <newton.d...@yahoo.com>
Subject Re: S2 NESTED iterators & FLAT HashMaps:
Date Tue, 19 Feb 2008 17:56:59 GMT
--- ravi_eze <ravichandrac@ivycomptech.com> wrote:
> The answers were a real help. I could get the things to things working... 
> 
> now when i use: fruits Val :${fruitsId.value} this displays: fruits Val
> :[apple, banana, orange] 
> 
> but when i use: ${fruitsId.value.size()} its giving compile time
> errors:tAttributes.jsp(98,16) The function size must be used with a prefix
> when a default namespace is not specified. I need to get 3 so how should i
> form the expression?
> 
> if i use: <s:property value="#fruitsId.value.size()" /> then its displaying
> 3. The tag is written as follows:
> 
> 		<s:iterator
> 			id="fruitsId"
> 			status="fruitsStat"
> 			value="fruitColourInfo"> 
>                        <s:property value="#fruitsId.value.size()" /> 
>                  ...
> 
> i basically need to use this in < td colspan="{...}" > ... is there any
> alternative ways of handling this? any ideas pl: help

<td colspan="<s:property value="#fruitsId.value.size()" />">

Dave


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


Mime
View raw message