| Attributes |
| Name | Required | Request-time | Type | Description |
| name | false | true | java.lang.String | reference to the object used as source for the table. Can be an expression like requestScope.object.property. In the EL version of the taglibrary this must be an EL expression which points to the source object. |
| length | false | true | java.lang.String | number of records to be shown |
| offset | false | true | java.lang.String | index of the first record to be shown |
| pagesize | false | true | java.lang.String | number of records in a page |
| decorator | false | true | java.lang.String | Fully qualified class name for a TableDecorator. Use a TableDecorator to provide custom operations against the whole list, such as computing totals. Must extend org.displaytag.decorator.TableDecorator. |
| requestURI | false | true | java.lang.String | When the present, links for sorting, exports, and paging are formed by adding any tag generated parameters to the value of requestURI attribute. |
| requestURIcontext | false | true | java.lang.String | Enable/disable prepending of application context to generated links. Default is true, you can set it to false in order to generate cross-context links. |
| excludedParams | false | true | java.lang.String | Whitespace separated list containg the name of parameters which should NOT be forwarded during paging or sorting. You can use excludedParams="*" to match (exclude) any parameter. |
| varTotals | false | true | java.lang.String | Store a java.util.Map of the column totals in a pageContext variable by this name. The keys of the map are "column" and the column number (first column is "column1", etc); values are the corresponding total for the column; columns that are not marked as to total="true" will be omitted from the map. The variable will ONLY be available within the footer tag and after the end of the table, it is not available with the body of the table or columns. |
| style | false | true | java.lang.String | html pass through attribute |
| class | false | true | java.lang.String | html pass through attribute |
| cellspacing | false | true | java.lang.String | html pass through attribute |
| cellpadding | false | true | java.lang.String | html pass through attribute. Better using "padding" css attribute in style or class |
| frame | false | true | java.lang.String | html pass through attribute. |
| rules | false | true | java.lang.String | html pass through attribute. |
| summary | false | true | java.lang.String | html pass through attribute |
| htmlId | false | true | java.lang.String | html "id" pass through attribute |
| export | false | true | java.lang.String | enable/disable export. Valid values are true or false |
| id | false | true | java.lang.String | See "uid". |
| uid | false | true | java.lang.String | 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. Two tables in the same page can't have the same id (paging and sorting will affect both). If no "htmlId" is specified the same value will be used for the html id of the generated table. |
| sort | false | true | java.lang.String | Use 'page' if you want to sort only visible records, or 'list' if you want to sort the full list, or 'external' if the data is sorted outside displaytag. |
| defaultsort | false | true | java.lang.String | The index of the column that will be used by default for sorting (starting from 1) |
| defaultorder | false | true | java.lang.String | The default order for the sorted column. Valid values are "ascending" (default) or "descending" |
| partialList | false | true | boolean | enable/disable partialLists. Valid values are true or false |
| size | false | true | java.lang.String | Used only when partialList=true. Reference to the Integer object containing the size of the total dataset. Can be an expression like requestScope.object.property. In the EL version of the taglibrary this must be an EL expression which points to the source object. |