2013年11月21日星期四

struts2 tag library iterative problem

iteration List, I generally every iteration of a record two records each iteration now , how to get it, please help Big Brother Big Sister , thank you ! ! !
example ah :





$ {beaninfo.productId}
;





so that each time a record out , and then the next iteration ,
But now I want to come up every two records out, and then the next iteration





$ {beaninfo.productId}
;

$ {beaninfo.productId}
;





how to get it, Big Brother Big Sister help , thank you ~ !
------ Solution ---------------------------------------- ----
can use an iteration variable temporary storage , the second time without iteration result , the direct use of this temporary ?
------ Solution ---------------------------------------- ----
should consider other ways to go around .
------ Solution ---------------------------------------- ----
two td contents of the same, I do not know why you want to ,

this way you can achieve what you want



$ { beaninfo.productId}



$ { beaninfo.productId}
;




do not know if . .
------ For reference only -------------------------------------- -
Forums bad one morning
------ For reference only ----------------------------- ----------
Thank you for your answer .
------ For reference only -------------------------------------- -
landlord you how to solve ah

没有评论:

发表评论