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

📄 yesnoaction.java

📁 j2ee源码
💻 JAVA
字号:
package com.leeman.wkexs.common.web;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import javax.servlet.http.Cookie;
import org.apache.struts.action.Action;
import org.apache.struts.action.ActionError;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.action.ActionMessage;

import java.util.Map;
import java.util.HashMap;
import java.util.ArrayList;
import java.util.Locale;

import com.leeman.common.util.Formatter;
import com.leeman.wkexs.common.security.WebGuard;
import com.leeman.wkexs.common.security.exceptions.*;
import com.leeman.wkexs.master.company.entity.CompanySO;
import com.leeman.wkexs.master.company.entity.CompanyVO;
import com.leeman.wkexs.master.company.handler.CompanyHandler;
import com.leeman.wkexs.master.company.handler.CompanyHandlerHome;
import com.leeman.wkexs.master.company.web.CompanyUtil;

import com.leeman.common.handler.ObjectTokenHandler;
import com.leeman.common.handler.ObjectTokenHandlerHome;

import com.leeman.wkexs.web.base.BaseAction;
import com.leeman.wkexs.web.base.BaseConstants;
import com.leeman.wkexs.web.base.BaseCollectionCache;
import com.leeman.common.util.EjbGetter;
import com.leeman.common.web.ui.ScreenOption;


/**
 * @version 	1.0
 * @author
 */
public class YesNoAction extends BaseAction{

	public Map getCmdMethodMap()
	{
		HashMap map = new HashMap();
		map.put("question","question");
		map.put("yes","yes");
		map.put("no", "no");
		map.put("cancel", "cancel");
		
		return map;
	}
	
	public ActionForward question(
		ActionMapping mapping,
		ActionForm form,
		HttpServletRequest request, 
		HttpServletResponse response) throws Exception{

		return mapping.getInputForward();
	}
	
	public ActionForward yes(
		ActionMapping mapping,
		ActionForm form,
		HttpServletRequest request, 
		HttpServletResponse response) throws Exception{
	
		ActionForward yes = new ActionForward();
		yes.setPath(request.getParameter("yesURL"));
		return yes;
	}
	
	public ActionForward no(
		ActionMapping mapping,
		ActionForm form,
		HttpServletRequest request, 
		HttpServletResponse response) throws Exception{
			
		ActionForward no = new ActionForward();
		no.setPath(request.getParameter("noURL"));
		return no;
	}
	
	public ActionForward cancel(
		ActionMapping mapping,
		ActionForm form,
		HttpServletRequest request, 
		HttpServletResponse response) throws Exception{

		ActionForward cancel = new ActionForward();
		cancel.setPath(request.getParameter("cancelURL"));
		return cancel;
	}
}

⌨️ 快捷键说明

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