A collection of classes used to build Struts applications that
support authentication and authorization. Subclass {@link
com.methodhead.auth.AuthAction AuthAction} to control who executes
actions. Use {@link com.methodhead.auth.LoginAction LoginAction} to
log users in and out of an application. These classes work with users
that implement {@link com.methodhead.auth.AuthUser AuthUser}.
To integrate this package into your application:
-
Install the following resources appropriately in your web application:
-
From {@link com.methodhead.auth.LoginAction LoginAction's
javadocs}, copy the action mappings, forwards, and forms into your
struts-config.xml.
-
From {@link com.methodhead.auth.LoginAction LoginAction's javadocs}, copy
the message resources into your application resources file.
-
Update the /login mapping's parameter with the appropriate user
class for your application.
-
Make sure the following resources (or their equivelant) are in your
application:
- login.jsp
- accessdenied.jsp
- index.jsp
Be sure to update the action mappings appropriately if you use your own
resources.
|