多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
## 扩展 普通对象: ~~~ public String index() { User user = new User(); user.setName("jack"); user.setAge(20); ValueStack valueStack = ActionContext.getContext().getValueStack(); valueStack.push(user); return SUCCESS; } ~~~ ~~~ <s:property value="name"></s:property> <s:property value="[0].top.name"></s:property> //从0开始,最上面那个 ~~~ 集合: ~~~ public String index() { User user1 = new User(); user1.setName("jack"); user1.setAge(20); User user2 = new User(); user2.setName("milan"); user2.setAge(18); List<User> list = new ArrayList<>(); list.add(user1); list.add(user2); ValueStack valueStack = ActionContext.getContext().getValueStack(); valueStack.push(list); return SUCCESS; } ~~~ ~~~ <s:property value="[0].top[0]"/> ~~~