struts2 注解例子
来源:互联网 发布:天下3妖孽男捏脸数据 编辑:程序博客网 时间:2024/06/06 22:48
package com.joeyon.demo.component.action;import com.joeyon.framework.common.lang.Caster;import com.joeyon.framework.component.assembly.manager.AssemblyComponentManager;import com.joeyon.framework.util.CollectionUtils;import com.joeyon.framework.webutil.annotation.Action;import com.joeyon.framework.webutil.annotation.Result;import com.joeyon.demo.component.vo.ComponentVO;import com.joeyon.demo.framework.webutil.BaseAction;import java.util.List;@org.springframework.stereotype.Component("jfs.ComponentAction")@Action(className="jfs.ComponentAction")public class ComponentAction extends BaseAction{ private ComponentModel model = new ComponentModel(); public Object getModel() { return this.model; } @Action(name="ComponentAction_goMain") @Result("/demo/pages/com/joeyon/demo/component/ComponentAction_goMain.jsp") public String goMain() { List allRegisterComponent = AssemblyComponentManager.getInstance().getAllRegisterComponent(); this.model.setListComponent(CollectionUtils.toList(allRegisterComponent, new Caster() { public ComponentVO cast(Object obj) { ComponentVO vo = new ComponentVO(); vo.setComponent((com.joeyon.framework.component.Component)obj); return vo; } })); return "success"; } @Action @Result("/demo/pages/com/joeyon/demo/component/ComponentAction_goDisplay.jsp") public String goDisplay() { ComponentVO vo = new ComponentVO(); vo.setComponent(AssemblyComponentManager.getInstance().getComponentByCode(this.model.getComponentCode())); this.model.setComponentVO(vo); return "success"; }}
0 0
- struts2 注解例子
- SSH整合例子 Struts2 Spring3 Hibernate3 注解
- 注解例子
- 注解 例子
- struts2注解
- struts2注解
- struts2 注解
- struts2 注解
- struts2注解
- struts2注解
- struts2注解
- struts2注解
- Struts2注解
- struts2注解
- struts2注解
- struts2注解
- struts2注解
- struts2注解
- easyui linkbutton方法不能正常执行
- 2013成都现场
- 研究生(包括博士)选题与开题报告撰写
- GDAL:函数GDALDataset::RasterIO说明
- oracle中Blob和Clob类型的区别
- struts2 注解例子
- 等待的真相
- C语言实现 一个数二进制位模式从左到右翻转 reverse_bit
- ******************** 宏定义的调试 ********************
- SVN team 合并
- EditText控件的使用
- tcp 三次握手
- 杀毒软件和防火墙的区别
- android中ListView异步加载图片时的图片错位问题解决方案