I'm almost certain you cannot create a header row like you want. DisplayTag doesn't AFAIK allow you to span columns or create multi row headers. To create the data rows you could use a TableDecorator but you would probably end up writing more code to format the table correctly than you would by using a JSTL loop and coding it into your JSP page directly (or into a tag file). Unless you really need the paging and export functions of DisplayTag you will probably be better off creating the table yourself.
Ed!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
How I can create multiline cells using dispaly tag. For example:
|---------------|---|---|
| name1 |na |na |
----------------|me2|me3|
| n4 | n5 | n6 | | |
I'm almost certain you cannot create a header row like you want. DisplayTag doesn't AFAIK allow you to span columns or create multi row headers. To create the data rows you could use a TableDecorator but you would probably end up writing more code to format the table correctly than you would by using a JSTL loop and coding it into your JSP page directly (or into a tag file). Unless you really need the paging and export functions of DisplayTag you will probably be better off creating the table yourself.
Ed!