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; }

东北虎啸 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日
fjx1996820 LV5
2020年8月17日

asdfg01234 LV10
1月10日
3334004690 LV11
2024年6月24日
小王wang LV10
2024年2月29日
lyj001
2023年10月24日
暂无贡献等级
xshxxm1 LV21
2023年3月28日
小新Coding LV9
2023年3月8日
东北虎啸 LV3
2023年2月22日
kehehee2
2023年2月2日
暂无贡献等级
zeus123
2022年10月26日
暂无贡献等级
微信网友_6168012214161408
2022年10月9日
暂无贡献等级