DISPLAY TAG for a while, I feel very easy to use, I can find it like this in the forum. There is also a small number of people using this stuff, and then I will write articles. Display Tag Lib is a tag library that handles tables on the JSP page. It is very powerful. You can make pairs, data export, group, column sort, etc. Give me a very convenient to use it. It can greatly reduce the amount of code. Among the official website of Display Tag http://displaytag.sourceforge.net. First of all, it is of course to download its JAR package, here you can download the latest version. Place the JAR package under the lib folder of web-infers. There are also two auxiliary packages: Apache's Commons-Lang and Standard packages, more accessories can be downloaded here.
Add a filter
Display: column proty = "name" URL = "detail.jsp" paramid = "id" paramodding = "id" />
2. Sort by column Sort Display Tag can be sorted by column, that is, click the column name, sort the data of the column. You only need to add sort = "true" to the columns you want to sort, as described below, you can sort the first three columns. Add a defaultsort = "column number" in Display: Table, you can sort the specified columns by default.
4. DISPLAY TAG Properties Set the display: setProperty as a way to change the Display Tag property, but it is too much trouble in each JSP. There are a lot of default properties in the Display Tag, which has a dedicated property file, is in its JAR package in its JAR package, the DisplayTag / Properties / TableTag.Properties you want to change its default properties, we can under Web-INF / CLASSES Create a file displaytag.properties that sets the properties that requires modified properties in the format of the property of tabletag.properties. # Messages in TableTag.properties is set to the prompt information displayed on the page. The default is English, we can change it to Chinese. However, here can only use Unicode, that is to say Chinese characters must be converted to Unicode, this can be converted using the JDK's own Native2ASCII.exe.