?? validatename.java
字號:
/**
*
* @author <a href="mailto:flustar2008@163.com">flustar</a>
* @version 1.0
* Creation date: Dec 25, 2007 6:32:19 PM
*/
package com.firstssh.common.Bean;
import com.firstssh.service.IUserService;
public class ValidateName {
private IUserService userService;
public String valid(String username){//用來檢查用戶名是否存在
String result=null;
if(!userService.validateName(username)){
result="恭喜,"+username+" 可以使用";
}else{
result=username+" 已存在,請換一個用戶名";
}
return result;
}
public IUserService getUserService() {
return userService;
}
public void setUserService(IUserService userService) {
this.userService = userService;
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -