SessionAware design in Struts 2
问题 I have been working with Struts 2 for a long time. In case of implementing SessionAware interface to our action class we will get SessionMap but not HttpSession object. In case of ServletRequestAware and ServletResposeAware we get HttpServletRequest and HttpServletResponse object but not wrapper objects like SessionMap in case of SessionAware . My question is, if Struts is giving us SessionMap instead of HttpSession to decouple our action classes from Servlet API and Http protocol,then why it