struts2取list里头的值勤
struts2取list里面的值勤
如何通过struts2标签拿到静态List型变量的值
追问
你好,我问的是终极静态List变量的访问方法,不是一般的list. 例如: public static final List<String> NAMES = new ArrayList<String>();
回答
哦,这个就是访问static属性了么。 访问静态属性:<s:property value="@com.xxx.xxx.类名@NAMES"/>