⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 accountflowhandler.java~

📁 J2EE & Tomcat books published by hope
💻 JAVA~
字号:
/* * $Id: AccountFlowHandler.java,v 1.1.4.2 2001/03/15 00:40:06 brydon Exp $ * Copyright 2001 Sun Microsystems, Inc. All rights reserved. * Copyright 2001 Sun Microsystems, Inc. Tous droits r閟erv閟. */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.Address;import com.sun.j2ee.blueprints.petstore.control.event.EStoreEvent;import com.sun.j2ee.blueprints.petstore.control.event.AccountEvent;import com.sun.j2ee.blueprints.customer.util.ContactInformation;import com.sun.j2ee.blueprints.petstore.control.exceptions.EStoreEventException;import com.sun.j2ee.blueprints.petstore.util.WebKeys;import com.sun.j2ee.blueprints.util.tracer.Debug;/** * Account Handler **/public class AccountFlowHandler implements FlowHandler {    public void doStart(HttpServletRequest request) {    }    public String processFlow(HttpServletRequest request)        throws EStoreEventException {        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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -