How to fixed table header in struts2 using display table

In Struts 2, fixed table header can be implemented with the help of display tag library. In this article, We will see fixed table header, pagination, sorting and exporting data in different formats like excel, CSV etc. In this example, We are using eclipse IDE, Struts 2.5.10.1 and DisplayTag 1.2.

Download the displaytag library from Sourceforge Official Site. Now follow below steps to create a dynamic web project using eclipse.

1. Open Eclipse and Go to “File” and choose “Dynamic Web Project” in “New” option.