摘要:
1. ActionContext在Struts2开发中,除了将请求参数自动设置到Action的字段中,我们往往也需要在Action里直接获取请求(Request)或会话(Session)的一些信息,甚至需要直接对JavaServlet Http的请求(HttpServletRequest),响应(HttpServletResponse)操作. 我们需要在Action中取得request请求参数"username"的值:[java]ActionContext context = ActionContext.getContext();Map params = context.g 阅读全文
随笔档案-2012年8月1日
Action 跟 Actionsupport 的区别
2012-08-01 09:12 by Patrick.Lee, 360 阅读, 收藏,
摘要:
转自:http://www.cnblogs.com/xlwmin/articles/2212416.htmlAction 跟 Actionsupport 的区别当我们在写action的时候,可以实现Action接口,也可以继承Actionsupport这个类.到底这两个有什么区别呢?Action接口有:public static final java.lang.String SUCCESS = "success";public static final java.lang.String NONE = "none";public static final 阅读全文
浙公网安备 33010602011771号