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