struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gabriel Belingueres" <belingue...@gmail.com>
Subject Re: use property of iterator
Date Sat, 04 Oct 2008 12:45:58 GMT
use the <s:set> tag
http://struts.apache.org/2.1.2/docs/set.html


2008/10/4 Hardik Shah <hardik_982@yahoo.com>:
>
> how to use iterator property as variable
>
> suppose
>
>
>         <s:iterator value="attributelist" id="attriblist">
>                <%int prevAttrId=-1; %>
>        <tr>
>                 <td><s:property value="attrName"/></td>
>            <td><s:property value="attrValue"/></td>
>            <td><s:property value="attrType"/></td>
>            <td><s:property value="attrForIndiName"/></td>
>            <td><s:property value="userTypeName"/></td>
>            <td><s:property value="userInput"/></td>
>            <td><s:property value="remark"/></td>
>            <td><s:property value="attrMatrixValue"/></td>
>        </tr>
>
>
>         </s:iterator>
> after each iteration i want to store attrMatrixValue in prevAttrId variable
>
> can i use ognl expression or another else for this
> i m not well experienced in s2
>
> help
>
>
> -----
>
>
> Java/J2EE developer
> India
>
> blogs
> http://hardik4u.wordpress.com wordpress blog
>
> --
> View this message in context: http://www.nabble.com/use-property-of-iterator-tp19810685p19810685.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

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


Mime
View raw message