I need to access the index for every row in a displaytag table. Similar to By the way, I am using displaytag 1.2 in JSP. Thanks.

有帮助吗?

解决方案

Quote from the documentation:

uid - Unique id used to identify this table. The object representing the current row is also added to the pageContext under this name, so that you can refer to it in column bodies using ${uid}. You can also use uid_rowNum to refer to the current row number.

(emphasis mine)

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top