modeldrivenaction.java

来自「在Struts2中的jar包xwork的源代码.版本为2.0.7」· Java 代码 · 共 35 行

JAVA
35
字号
/* * Copyright (c) 2002-2003 by OpenSymphony * All rights reserved. */package com.opensymphony.xwork2;/** * ModelDrivenAction * * @author Jason Carreira *         Created Apr 8, 2003 6:27:29 PM */public class ModelDrivenAction extends ActionSupport implements ModelDriven {    private String foo;    private TestBean model = new TestBean();    public void setFoo(String foo) {        this.foo = foo;    }    public String getFoo() {        return foo;    }    /**     * @return the model to be pushed onto the ValueStack after the Action itself     */    public Object getModel() {        return model;    }}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?