You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Hardik Shah <ha...@yahoo.com> on 2008/10/04 12:13:32 UTC

use property of iterator

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


Re: use property of iterator

Posted by Hardik Shah <ha...@yahoo.com>.
can  i use vector of vector for iterating 


-----


Java/J2EE developer 
India

blogs
http://hardik4u.wordpress.com wordpress blog 

-- 
View this message in context: http://www.nabble.com/use-property-of-iterator-tp19810685p19831975.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


Re: use property of iterator

Posted by Gabriel Belingueres <be...@gmail.com>.
use the <s:set> tag
http://struts.apache.org/2.1.2/docs/set.html


2008/10/4 Hardik Shah <ha...@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