All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.moomanow.web.struts2.action.BaseAction Maven / Gradle / Ivy

There is a newer version: 0.1.0
Show newest version
/**
 * 
 */
package com.moomanow.web.struts2.action;

import java.util.Enumeration;
import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts2.interceptor.PrincipalAware;
import org.apache.struts2.interceptor.PrincipalProxy;
import org.apache.struts2.interceptor.RequestAware;
import org.apache.struts2.interceptor.ServletRequestAware;
import org.apache.struts2.interceptor.ServletResponseAware;
import org.apache.struts2.interceptor.SessionAware;
import org.springframework.beans.factory.BeanNameAware;

import com.moomanow.core.common.bean.IJSONResult;
import com.moomanow.web.struts2.bean.Button;
import com.moomanow.web.struts2.bean.IMessage;
import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionSupport;
import com.opensymphony.xwork2.interceptor.ValidationWorkflowAware;

/**
 * @author Jaurpong.w(Kwan)
 *
 */
public abstract class BaseAction extends ActionSupport implements RequestAware,SessionAware,ServletRequestAware,ServletResponseAware,PrincipalAware,BeanNameAware,ValidationWorkflowAware {

	
	protected static final String MESSAGE = "message";
	protected HttpServletRequest httpServletRequest;
	protected HttpServletResponse httpServletResponse;
	protected Map session;
	protected Map request;
	protected List messageList;
	protected List