📄 javausebean.java
字号:
/* * Copyright 2004-2005 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. *//* * JavaUseBean.java * * Created on May 27, 2002, 11:13 AM */package samples.i18n.simple.servlet.samplebean;import java.io.*;import java.util.*;import java.net.*;/** * Simple Java Bean used to set/get name and greeting messages from a jsp * @author Chand Basha * @version 1.0 */public class JavaUseBean { private String name; private String greet; /** Default constructor */ public JavaUseBean() {} /** Sets the name passed from the jsp file */ public void setName(String name) { this.name = name; } /** Gets the name that was set using setName(String name) method of this class */ public String getName() { return name; } /** Sets the greeting passed from the jsp file */ public void setGreet(String greet) { this.greet = greet; } /** Gets the greeting that was set using setGreet(String greet) method of this class */ public String getGreet() { return greet; } /** Returns a greeting message with the name and message */ public String getGreetString () { return "Greetings " + greet + " " + name; }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -