我们可以用jxls定义局部变量,它可以用来设置列的递增计数。jxls forEach标记:如何定义局部变量?
对于例如:考虑以下
<jx:forEach items="${myList}" var="myVar">
-- i need to define a local integer variable here which will have an initial value as 0
-- and i will increment it and display in the output xls's first column
</jx:forEach>
基本上我的要求是有somekind的局部变量声明中JXLS代码,我将在XML中增加和显示。
欢迎任何其他选择。
问候, 拉胡尔
想通了....我们可以使用''在我们想要显示编号的列中。我们可以将上面的代码保存在标记中。 –
2012-04-12 13:19:46