FileDocCategorySizeDatePackage
SessionAware.javaAPI DocExample1605Mon Jul 23 13:26:52 BST 2007org.apache.struts2.interceptor

SessionAware

public interface SessionAware
Actions that want access to the user's HTTP session should implement this interface.

This interface is only relevant if the Action is used in a servlet environment.

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.

Fields Summary
Constructors Summary
Methods Summary
public voidsetSession(java.util.Map session)
Sets the Map of session attributes in the implementing class.

param
session a Map of HTTP session attribute name/value pairs.