package com.eda.test.common; import java.io.IOException; import java.util.Map; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpSession; import javax.servlet.jsp.PageContext; import org.apache.struts2.ServletActionContext; import com.opensymphony.xwork2.ActionContext; import com.opensymphony.xwork2.ActionSupport; /** * @author Lanxiaowei * @createTime 2011-3-27 */ public interface GerneralAction{ /** * 获取Struts上下文 * @return */ public ActionContext getActionContext(); /** * 获取HttpSession对象 * @return Map */ @SuppressWarnings("unchecked") public Map getSession(); /** * 获取HttpSession对象 * @return HttpSession */ @SuppressWarnings("unchecked") public HttpSession getHttpSession(); /** * 获取request对象 */ public HttpServletRequest getRequest(); /** * 获取response对象 */ public HttpServletResponse getResponse(); /** * 获取PageContext对象 */ public PageContext getPageContext(); /** * 获取项目的basePath,如:http://localhost:8080/MyOA/ */ public String getBasePath(); /**获取当前工程的部署路径*/ public String getProjectRealPath(); /** * 设置页面不缓存并且向客户端输出Json * @param message 要输出的json字符串 */ public void setNoCacheAndWriteJson(String message) throws IOException; }

新哥新奇士橙 LV5
8月11日
东北虎啸 LV3
2023年2月22日
49202046 LV7
2022年8月2日
Comedian LV3
2022年7月19日
dududufeidad LV9
2021年10月27日
yiyun0014 LV4
2021年5月7日
and123456 LV11
2021年4月20日
幻羽揚 LV4
2021年1月3日
2235140624 LV17
2020年11月24日
liujun0104 LV5
2020年11月8日