6struts2标签–sort(排序)
package com.tag;
import java.util.Comparator;
public class MyComparator implements Comparator{
public int compare(Object o1, Object o2) {
return ((String)o1).length() – ((String)o2).length();
}
}
<%@ page contentType=”text/html; charset=UTF-8″ %>[......]