struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Emil Dombagolla <dombago...@gmail.com>
Subject OGNL map key reading
Date Wed, 17 Nov 2010 08:13:35 GMT
Dear all,


-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

<s:property value="currentPageHotelList[#stat.index].room0"/> //this works ,
i want room0 make dynamic  ( like room0 to room4)


<s:iterator begin="0" end="5" >

  <s:set var="roomindex" value="'room'+top"></s:set> //this gives room0
,room1 ,room2 etc...

    <s:property value="currentPageHotelList[#stat.index].%{#roomindex}"/> //
this %{#roomindex} doesnt work


-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------



please help me to get the roomindex variable executed there to read my map

If possible thank you so much,
Emil

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message