📄 transfer.java
字号:
/* * WebWork, Web Application Framework * * Distributable under Apache license. * See terms of license at opensource.org */package webwork.examples.bank;import webwork.action.ActionSupport;import webwork.action.CommandDriven;/** * This code is an adaptation of the Struts example from the JavaWorld article by Thor Kristmundsson. * http://www.javaworld.com/javaworld/jw-12-2000/jw-1201-struts_p.html */public class Transfer extends ActionSupport implements CommandDriven{ // Static -------------------------------------------------------- // Attributes ---------------------------------------------------- String receiver = ""; String account = ""; float amount = 0; String date = "1"; // Public ------------------------------------------------------- public void setReceiver(String str) { this.receiver = str; } public String getReceiver() { return this.receiver; } public void setAccount(String str) { this.account = str; } public String getAccount() { return this.account; } public void setAmount(float amount) { this.amount = amount; } public float getAmount() { return this.amount; } public void setDate(String date) { this.date = date; } public String getDate() { return this.date; } // Action implementation ----------------------------------------- public String doExecute() throws Exception { // Show confirm page return SUCCESS; }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -