Struts 2 s:sort control tag
s:sort: The s:sort tag is used to sort a List by using java.util.Comparator. Syntax: <s:sort comparator=”#comparatorName” source=”fieldName”> Example: index.jsp <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Struts 2 s:sort control tag example</title> <META HTTP-EQUIV="Refresh" CONTENT="0;URL=Test.action"> </head> <body> </body> </html><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Struts 2 s:sort control tag example</title> … Read more