Class SessionFilter

java.lang.Object
com.aoindustries.web.struts.SessionFilter
All Implemented Interfaces:
Filter

public class SessionFilter extends Object implements Filter
Filter to write selective values into URL when cookies disabled for SEO purposes. If the client doesn't support cookies:
  1. If this site supports more than one language, adds a language parameter if it doesn't exist.
  2. If this site supports more than one skin, adds a layout parameter if it doesn't exist.

This should be used for both the REQUEST and ERROR dispatchers.

This must be first in the filter chain, or at least before all filters that perform any URL rewriting. This filter selectively does not pass the URL rewriting up the filter chain, as it is intended to block default session URL rewriting provided by servlet contains.

Author:
AO Industries, Inc.