testbean.java

来自「java 实现的动态树 java 实现的动态树」· Java 代码 · 共 29 行

JAVA
29
字号
/*
 * This Source code was written by theKM* (the KeyboardMonkey) and is held under
 * The popular ISYM.NSMYP technology agreement (I've Shown You Mine, Now Show Me
 * Yours Please). In which case, writing source that uses this source in part or
 * in whole means that it would be nice of you to show me at least what it does
 * and how my source played a part.
 * All rights reserved... arron@keyboardmonkey.com
 */
package com.km.struts.tutorial.test;

/** This bean only exists to make sure that the webapp for the tutorial is
  * is set up correctly and the nesting extension is running.
  */
public class TestBean {

  /* A "fake" nested property to test against */
  public TestBean getNestedProperty() {
    return this;
  }
  
  /* a nested property to write to the screen */
  public String getNestedHello() {
    return this.helloString;
  }
  
  /* usual private references */
  private String helloString = "Hello there from a nested property!";

}

⌨️ 快捷键说明

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