📄 noallowedcharaction.java
字号:
/*
* Created on 2007-3-26
* Last modified on 2007-8-22
* Powered by YeQiangWei.com
*/
package com.yeqiangwei.club.controller.action;
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.NoAllowedCharModel;
import com.yeqiangwei.club.service.util.NoAllowedCharService;
import com.yeqiangwei.club.util.BeanUtils;
import com.yeqiangwei.club.util.MessageUtils;
import com.yeqiangwei.club.controller.form.NoAllowedCharForm;
import com.yeqiangwei.club.controller.form.build.NoAllowedCharBuild;
import com.yeqiangwei.club.exception.ClubException;
import com.yeqiangwei.util.HttpServletUtils;
public class NoAllowedCharAction {
public void createOrUpdate(HttpServletRequest request,HttpServletResponse response)
{
NoAllowedCharForm noAllowedCharForm = new NoAllowedCharBuild(request).build();
NoAllowedCharModel noAllowedCharModel = new NoAllowedCharModel();
BeanUtils.copyProperties(noAllowedCharModel,noAllowedCharForm);
try {
this.getNoAllowedCharService().createOrUpdate(noAllowedCharModel);
request.setAttribute("message",MessageUtils.getMessage("success"));
} catch (ClubException e) {
request.setAttribute("message",e.toString());
}
request.setAttribute("NoAllowedCharForm",noAllowedCharForm);
HttpServletUtils.forward(request,response,"noAllowedChar.jsp");
}
public NoAllowedCharService getNoAllowedCharService() {
return ServiceWrapper.<NoAllowedCharService>getSingletonInstance(ServiceLocator.NOALLOWEDCHAR);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -