?? addkindaction.java
字號:
package com.lixineng.action;
import java.util.Map;
import com.lixineng.action.base.BaseAction;
import com.opensymphony.xwork2.ActionContext;
public class AddKindAction extends BaseAction
{
private String name;
private String desc;
private String vercode;
public String execute()throws Exception
{
Map session = ActionContext.getContext().getSession();
String ver2 = (String)session.get("rand");
session.put("rand" , null);
if (vercode.equalsIgnoreCase(ver2))
{
aucService.addKind(name , desc);
return SUCCESS;
}
else
{
addActionError("驗(yàn)證碼不匹配,請重新輸入");
return INPUT;
}
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getDesc() {
return desc;
}
public void setDesc(String desc) {
this.desc = desc;
}
public String getVercode() {
return vercode;
}
public void setVercode(String vercode) {
this.vercode = vercode;
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -