mirror of
https://github.com/apache/struts.git
synced 2026-08-07 15:46:57 +00:00
WW-2181 SessionAware documentation is misleading about unit testing
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@576957 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -26,10 +26,10 @@ import java.util.Map;
|
||||
/**
|
||||
* Actions that want access to the user's HTTP session should implement this interface.<p>
|
||||
* <p/>
|
||||
* This interface is only relevant if the Action is used in a servlet environment.<p>
|
||||
* This will give them access to a Map where they can put objects that can be made available
|
||||
* to subsequent requests.<p/>
|
||||
* <p/>
|
||||
* Note that using this interface makes the Action tied to a servlet environment, so it should be
|
||||
* avoided if possible since things like unit testing will become more difficult.
|
||||
* Typical uses may be cached user data such as name, or a shopping cart.
|
||||
*
|
||||
*/
|
||||
public interface SessionAware {
|
||||
|
||||
Reference in New Issue
Block a user