Menu

Displaying row number with displaytag

Dirk
2007-04-02
2012-10-09
  • Dirk

    Dirk - 2007-04-02

    I wonder how I can dispay the row numbers of the resulting table using dispaytag?
    I read that I can use uid_rowNum but how does the code look like? Would be thankful for some example code.
    I am using Spring. So, how can I display a list using displaytag and dislaying the rownumber which should enable me to access particular list entries like myList[3] (where 3 should be uid_rowNum).

    Thank you
    Dirk

     
    • Dirk

      Dirk - 2007-04-02

      I found out by myself that I have to define the 'uid' attribute in the display:table tag.
      To get the current row number I have to use ${theDefinedUid_rowNum} and that's it.

       

Log in to post a comment.

MongoDB Logo MongoDB