Rendering the Page Interface Page Configuration File

Customizing User Flow 9-5

9.6 Struts Configuration File

The Struts framework drives the navigation between the user interface pages.

9.6.1 Action Path

The action definition includes the path, which defines what the URL will be. The login page example is shown. action path=login type=com.bharosa.uio.actions.LoginAction forward name=success path=updateLoginStatus.do redirect=true forward name=loginJump path=loginJumpPage.jsp redirect=true forward name=password path=password forward name=challenge path=challengeUser.do redirect=true action

9.6.2 Action Type

In login page example, the URL is http:server nameoaam_ serverlogin.do. The login.do comes from the path definition of login. The type parameter defines the class that performs the action.The following classes are provided with the sample user pages. Table 9–1 Action Type Classes Class Name Description com.bharosa.uio.actions.LoginAction com.bharosa.uio.actions.LoginFailAction Displays error message in OAAM Server page. For example, the page could display a login blocked message. com.bharosa.uio.actions.ActivityAction com.bharosa.uio.actions.PasswordAction com.bharosa.uio.actions.UpdateAuthStatusAction Updates the user authentication status and, if appropriate, it triggers pattern data processing. com.bharosa.uio.actions.ValidateTrxAction com.bharosa.uio.actions.FlashFingerprintAction com.bharosa.uio.actions.LogoutAction Logs out the user session and redirects to login page com.bharosa.uio.actions.SignOnAction com.bharosa.uio.actions.RegisterQuestionsAction Displays sets of questions which the user can choose and register the correct answer for each. com.bharosa.uio.actions.ChangePasswordAction com.bharosa.uio.actions.ForgotPasswordAction com.bharosa.uio.actions.UserInputAction com.bharosa.uio.actions.UserPreferencesDoneAction com.bharosa.uio.actions.ChallengeUserAction Challenges the user by displaying a question-pad with one of the questions already registered by the user com.bharosa.uio.actions.ChangeUserNameAction 9-6 Oracle Fusion Middleware Developers Guide for Oracle Adaptive Access Manager

9.6.3 Struts Configuration File

This section shows a struts-config.xml file. struts-config -- ========== Global Forward Definitions ============================== -- global-forwards forward name=session_expired path=error.do?action=session_expired redirect=true forward name=emptyLoginId path=error.do?action=empty redirect=true forward name=fail path=error.do?action=fail redirect=true forward name=invalid_user path=error.do?action=invalid_user redirect=true forward name=error path=error.do?action=error redirect=true forward name=block path=error.do?action=block redirect=true forward name=challenge_block path=error.do?action=block redirect=true forward name=cookieDisabled path=error.do?action=cookieDisabled redirect=true forward name=accessDenied path=error.do?action=accessDenied redirect=true forward name=invalid_request path=error.do?action=accessDenied redirect=true forward name=user_disabled path=error.do?action=disabled redirect=true forward name=wrong_answer path=error.do?action=wrong_answer redirect=true forward name=login path=error.do redirect=true global-forwards -- ========== Action Mapping Definitions ============================== -- action-mappings -- action mappings for login -- action path=login type=com.bharosa.uio.actions.LoginAction forward name=success path=updateLoginStatus.do redirect=true forward name=loginJump path=loginJumpPage.jsp redirect=true forward name=password path=password forward name=passwordFT path=password forward name=challenge path=challengeUser.do redirect=true action action path=loginFail type=com.bharosa.uio.actions.LoginFailAction forward name=success path=loginFail action action path=activity type=com.bharosa.uio.actions.ActivityAction forward name=success path=loginSuccess redirect=true action com.bharosa.uio.actions.MessageAction com.bharosa.uio.actions.ExitAction com.bharosa.uio.actions.ErrorAction Table 9–1 Cont. Action Type Classes Class Name Description