userlogic.java
来自「ajax+struts最简单代码」· Java 代码 · 共 24 行
JAVA
24 行
/*
* Created on 2005-7-29
*
* TODO To change the template for this generated file go to
* Window - Preferences - Java - Code Style - Code Templates
*/
package org.mstar.strutsajax.ajax;
/**
* @author matianyi
*
* TODO To change the template for this generated type comment go to
* Window - Preferences - Java - Code Style - Code Templates
*/
public class UserLogic {
public boolean validate(String username,String password){
if("mty".equals(username)&&"123".equals(password)){
return true;
} else {
return false;
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?