OGNL表达式语言基础ABC
OGNL表达式语言能够帮助我们访问存在于ValueStack和ActionContext中的值. 首先让我们来看看通过OGNL来访问一个String数组的变量.在action类中我们创建一个string数组,代码如下: package vaannila; public class SampleAction { private String[] sampleArray; { sampleArray = new String[]{"item1","item2","item3"}; } public String execute() { return "success"; } public String[] getSampleArray( »