pricingaction.java~2~

来自「EJB+Hibernate+Spring 电信计费系统」· JAVA~2~ 代码 · 共 55 行

JAVA~2~
55
字号
package tarena.netctoss.action;

import org.apache.struts.action.ActionMapping;
import org.apache.struts.action.ActionForm;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts.action.ActionForward;
import org.apache.struts.actions.MappingDispatchAction;

public class PricingAction extends MappingDispatchAction {
    public ActionForward list(ActionMapping mapping, ActionForm form,
                              HttpServletRequest request,
                              HttpServletResponse response) {
        System.out.println("in list");
        return mapping.findForward("success");
    }

    public ActionForward toAdd(ActionMapping mapping, ActionForm form,
                               HttpServletRequest request,
                               HttpServletResponse response) {
        System.out.println("in toAdd");
        return mapping.findForward("success");
    }

    public ActionForward add(ActionMapping mapping, ActionForm form,
                             HttpServletRequest request,
                             HttpServletResponse response) {
        System.out.println("in add");
        return mapping.findForward("success");
    }

    public ActionForward remove(ActionMapping mapping, ActionForm form,
                                HttpServletRequest request,
                                HttpServletResponse response) {
        System.out.println("in remove");
        return mapping.findForward("success");
    }

    public ActionForward get(ActionMapping mapping, ActionForm form,
                             HttpServletRequest request,
                             HttpServletResponse response) {
        System.out.println("in get");
        return mapping.findForward("success");
    }

    public ActionForward modify(ActionMapping mapping, ActionForm form,
                                HttpServletRequest request,
                                HttpServletResponse response) {
        System.out.println("in modify");
        return mapping.findForward("success");
    }


}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?