How to access index variable in <display:table tag similar to varStatus in <c:forEach

StackOverflow https://stackoverflow.com/questions/18311318

  •  25-06-2022
  •  | 
  •  

Вопрос

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