📄 billaddaction.java
字号:
package org.yeeku.action;
import org.apache.struts.action.*;
import javax.servlet.http.*;
import java.util.*;
import org.yeeku.service.*;
import org.yeeku.factory.*;
/**
* @author yeeku.H.lee kongyeeku@163.com
* @version 1.0
* <br>Copyright (C), 2005-2008, yeeku.H.Lee
* <br>This program is protected by copyright laws.
* <br>Program Name:
* <br>Date:
*/
public class BillAddAction extends Action
{
public ActionForward execute(ActionMapping mapping , ActionForm form ,
HttpServletRequest request , HttpServletResponse response)throws Exception
{
System.out.println("@$%#%^$^*&^&*^^%^");
DynaActionForm deptAddform = (DynaActionForm)form;
String billDate = (String)deptAddform.get("billDate");
String billDueDate = (String)deptAddform.get("billDueDate");
String vendor = (String)deptAddform.get("vendor");
WebService ds = (WebService)AppFactory.instance().getApp("web");
boolean c = ds.createBill(billDate , billDueDate , vendor);
if (c)
{
System.out.println("c=" + c);
System.out.println("DEPT添加成功");
request.setAttribute("billDate" , billDate);
request.setAttribute("vendor" , vendor);
return mapping.findForward("success");
}
else
{
System.out.println("c=" + c);
return mapping.findForward("index");
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -