首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > 其他 > 在Struts 2 ValueStack推多个对象

在Struts 2 ValueStack推多个对象

  • 资源大小:11.91 kB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:1次
  • 资源积分:1积分
  • 标      签: 多个 对象

资 源 简 介

Struts 2 Value Stack Outjection Struts 2 plugin to push multiple objects on the value stack using annotations. Introduction -ref name="vsoutject"/> ``` NOTE: If you override an interceptor stack (such as defaultStack) or have defined your own interceptor stack, make sure the vsoutject interceptor reference comes BEFORE the params-interceptor. Step 3 Annotate which properties you want pushed onto the value stack: ``` public class EmployeeAction extends ActionSupport { private JsonTable jsonTable; private Employee employee; //VSOutject annotations must be on getter methods only. @VSOutject(isTopLevel=false,newInstance=true) public JsonTable getJsonTable() { return jsonTable; } //Since we have set the instance attribute to true, //we must define a setter method that will be use

相 关 资 源

您 可 能 感 兴 趣 的

同 类 别 推 荐

VIP VIP