📄 basicinfojsp.java
字号:
/*
* Created on 2007-1-14
* Last modified on 2007-03-27
* Powered by YeQiangWei.com
*/
package com.yeqiangwei.club.view.jsp;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.yeqiangwei.club.service.ServiceLocator;
import com.yeqiangwei.club.service.ServiceWrapper;
import com.yeqiangwei.club.service.model.BasicInfoModel;
import com.yeqiangwei.club.service.util.BasicInfoService;
import com.yeqiangwei.club.util.BeanUtils;
import com.yeqiangwei.club.controller.form.BasicInfoForm;
import com.yeqiangwei.util.Validator;
public class BasicInfoJsp extends BaseJsp{
public BasicInfoService basicInfoService;
public BasicInfoJsp(HttpServletRequest request, HttpServletResponse response) {
super(request, response);
}
public BasicInfoModel findOnly(){
return this.getBasicInfoService().findOnly();
}
public BasicInfoForm getBasicInfoForm(){
BasicInfoForm f = new BasicInfoForm();
if(Validator.isEmpty(request.getAttribute("BasicInfoForm"))){
BasicInfoModel model = this.getBasicInfoService().findOnly();
if(!Validator.isEmpty(model)){
BeanUtils.copyProperties(f,model);
}
}else{
f = (BasicInfoForm) request.getAttribute("BasicInfoForm");
}
return f;
}
public BasicInfoService getBasicInfoService() {
return ServiceWrapper.<BasicInfoService>getSingletonInstance(ServiceLocator.BASICINFO);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -