userinfoflowhandler.java~

来自「J2EE & Tomcat books published by hope」· JAVA~ 代码 · 共 41 行

JAVA~
41
字号
package com.sun.j2ee.workflow.control.actions;import java.util.HashMap;import java.util.ArrayList;import java.util.Enumeration;import javax.servlet.http.HttpServletRequest;import com.sun.j2ee.blueprints.customer.util.ContactInformation;import com.sun.j2ee.workflow.control.exceptions.EStoreEventException;import com.sun.j2ee.workflow.util.WebKeys;import com.sun.j2ee.workflow.util.tracer.Debug;public class UserInfoFlowHandler implements FlowHandler {    public void doStart(HttpServletRequest request) {    }    public String processFlow(HttpServletRequest request) throws WorkflowAppException {        String nextScreen = null;        if (request.getAttribute(WebKeys.MissingFormDataKey) != null) {            nextScreen =  "3";        } else if (request.getParameter("ship_to_billing_address") != null) {            nextScreen = "2";        } else {            nextScreen = "1";        }        return nextScreen;    }    public void doEnd(HttpServletRequest request) {    }}

⌨️ 快捷键说明

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