📄 passwordbuild.java
字号:
/*
* Created on 2007-2-18
* Last modified on 2007-2-18
* Powered by YeQiangWei.com
*/
package com.yeqiangwei.club.controller.form.build;
import javax.servlet.http.HttpServletRequest;
import com.yeqiangwei.club.controller.form.PasswordForm;
import com.yeqiangwei.util.ParamUtils;
/**
*
* @author yeqiangwei
*/
public class PasswordBuild {
private HttpServletRequest request;
public PasswordBuild(HttpServletRequest request) {
this.request = request;
}
public PasswordForm building(PasswordForm f){
return this.utils(f);
}
public PasswordForm building(){
PasswordForm f = new PasswordForm();
return this.utils(f);
}
private PasswordForm utils(PasswordForm f){
f.setUserId(ParamUtils.getIntParameter(request,"userId",0));
f.setUserName(ParamUtils.getStringParameter(request,"userName"));
f.setOpassword(ParamUtils.getStringParameter(request,"opassword"));
f.setNpassword(ParamUtils.getStringParameter(request,"npassword"));
f.setRand(ParamUtils.getStringParameter(request,"rand"));
return f;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -