📄 fundsaction.java
字号:
/*
* Generated by MyEclipse Struts
* Template path: templates/java/JavaClass.vtl
*/
package com.phpcoo.struts.action;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.actions.DispatchAction;
import com.phpcoo.po.FundsPo;
import com.phpcoo.service.IFundsService;
import com.phpcoo.struts.form.FundsForm;
/**
* MyEclipse Struts
* Creation date: 03-30-2008
*
* XDoclet definition:
* @struts.action validate="true"
*/
public class FundsAction extends DispatchAction {
private IFundsService fundsService;
private FundsPo fundsPo;
/*
* Generated Methods
*/
/**
* Method execute
* @param mapping
* @param form
* @param request
* @param response
* @return ActionForward
*/
public ActionForward execute(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response) {
FundsForm ff = (FundsForm)form;
fundsPo.setFundName(ff.getFundName());
fundsService.saveFunds(fundsPo);
// TODO Auto-generated method stub
return null;
}
public void setFundsPo(FundsPo fundsPo) {
this.fundsPo = fundsPo;
}
public void setFundsService(IFundsService fundsService) {
this.fundsService = fundsService;
}
/**
* @return fundsPo
*/
public FundsPo getFundsPo() {
return fundsPo;
}
/**
* @return fundsService
*/
public IFundsService getFundsService() {
return fundsService;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -