| es.udc.mypersonalizer.kernel.controller.actions.DefaultAction
All known Subclasses: es.udc.mypersonalizer.admin.http.controller.actions.tasks.ExecuteTaskAction, es.udc.mypersonalizer.admin.http.controller.actions.usermgnt.ProcessChangePasswordAction, es.udc.mypersonalizer.admin.http.controller.actions.propertyeditor.StartPropertyEditorAction, es.udc.mypersonalizer.admin.http.controller.actions.tasks.ExecuteTaskResultsAction, es.udc.mypersonalizer.admin.http.controller.actions.servicecfg.ProcessUpdateServiceConfigurationAction, es.udc.mypersonalizer.admin.http.controller.actions.usermgnt.RemoveUserFromGroupAction, es.udc.mypersonalizer.admin.http.controller.actions.services.ShowAllServicesAction, es.udc.mypersonalizer.portal.controller.actions.personalization.ChangeServiceButtonStateAction, es.udc.mypersonalizer.portal.controller.actions.mainpage.MainPageAction, es.udc.mypersonalizer.admin.http.controller.actions.usermgnt.RemoveUserAction, es.udc.mypersonalizer.portal.controller.actions.content.RemoveWorkspaceAction, es.udc.mypersonalizer.admin.http.controller.actions.servicecfg.UpdateServiceConfigurationAction, es.udc.mypersonalizer.admin.http.controller.actions.serviceperms.ProcessUpdateServicePermissionsAction, es.udc.mypersonalizer.admin.http.controller.actions.usermgnt.GroupsAssignedToUserAction, es.udc.mypersonalizer.admin.http.controller.actions.groupmgnt.RemoveUserFromGroupAction, es.udc.mypersonalizer.admin.http.controller.actions.workspacedefs.ProcessUpdateWorkspaceDefinitionAction, es.udc.mypersonalizer.admin.http.controller.actions.usermgnt.AddUser2Action, es.udc.mypersonalizer.portal.controller.actions.personalization.ChangeServicePropertyAction, es.udc.mypersonalizer.admin.http.controller.actions.servicecfg.ShowAllServicesAction, es.udc.mypersonalizer.portal.controller.actions.content.FindWorkspaceContentAction, es.udc.mypersonalizer.admin.http.controller.actions.groupmgnt.ProcessAddGroupAction, es.udc.mypersonalizer.admin.http.controller.actions.workspacedefs.RemoveWorkspaceDefinitionAction, es.udc.mypersonalizer.portal.controller.actions.user.SignUpAction, es.udc.mypersonalizer.admin.http.controller.actions.prototypes.ResetPrototypeAction, es.udc.mypersonalizer.portal.controller.actions.content.SelectWorkspaceAction, es.udc.mypersonalizer.admin.http.controller.actions.usermgnt.EditUserAction, es.udc.mypersonalizer.admin.http.controller.actions.session.LogoutAction, es.udc.mypersonalizer.admin.http.controller.actions.prototypes.ShowAllServicesAction, es.udc.mypersonalizer.portal.controller.actions.content.FindDesktopContentAction, es.udc.mypersonalizer.portal.controller.actions.user.SignInAction, es.udc.mypersonalizer.admin.http.controller.actions.usermgnt.UsersManagementMainAction, es.udc.mypersonalizer.portal.controller.actions.user.ChangePasswordAction, es.udc.mypersonalizer.portal.controller.actions.user.SignOutAction, es.udc.mypersonalizer.portal.controller.actions.content.RemoveServiceFromWorkspaceAction, es.udc.mypersonalizer.portal.controller.actions.user.ChangeUserRegistrationInformationAction, es.udc.mypersonalizer.admin.http.controller.actions.usermgnt.ProcessAddUserAction, es.udc.mypersonalizer.admin.http.controller.actions.groupmgnt.GroupMembersAction, es.udc.mypersonalizer.admin.http.controller.actions.prototypes.ShowAllPrototypesToCommitAction, es.udc.mypersonalizer.portal.controller.actions.content.ChangeDefaultWorkspaceAction, es.udc.mypersonalizer.portal.controller.actions.personalization.FindServicePropertyAction, es.udc.mypersonalizer.admin.http.controller.actions.metainfo.ReloadMetaInformationAction, es.udc.mypersonalizer.admin.http.controller.actions.workspacedefs.UpdateWorkspaceDefinitionAction, es.udc.mypersonalizer.admin.http.controller.actions.serviceperms.UpdateServicePermissionsAction, es.udc.mypersonalizer.portal.controller.actions.content.AddWorkspaceAction, es.udc.mypersonalizer.admin.http.controller.actions.workspacedefs.AddWorkspaceDefinitionAction, es.udc.mypersonalizer.portal.controller.actions.content.ChangeWorkspaceLayoutAction, es.udc.mypersonalizer.admin.http.controller.actions.services.ProcessRemoveServiceAction, es.udc.mypersonalizer.admin.http.controller.actions.groupmgnt.EditGroupAction, es.udc.mypersonalizer.portal.controller.actions.content.ChangeWorkspaceContentAction, es.udc.mypersonalizer.admin.http.controller.actions.serviceperms.ShowAllServicesAction, es.udc.mypersonalizer.admin.http.controller.actions.groupmgnt.ProcessEditGroupAction, es.udc.mypersonalizer.admin.http.controller.actions.prototypes.CommitChangesAction, es.udc.mypersonalizer.admin.http.controller.actions.usermgnt.ProcessRemoveUsersByLastSignInDateAction, es.udc.mypersonalizer.admin.http.controller.actions.groupmgnt.GroupsManagementMainAction, es.udc.mypersonalizer.admin.http.controller.actions.groupmgnt.RemoveGroupAction, es.udc.mypersonalizer.portal.controller.actions.content.FindWorkspaceLayoutAction, es.udc.mypersonalizer.admin.http.controller.actions.usermgnt.AddUserToGroupAction, es.udc.mypersonalizer.portal.controller.actions.content.ChangeWorkspacesOrderAction, es.udc.mypersonalizer.admin.http.controller.actions.usermgnt.AddUserAction, es.udc.mypersonalizer.portal.controller.actions.user.EditUserRegistrationInformationAction, es.udc.mypersonalizer.admin.http.controller.actions.workspacedefs.ProcessAddWorkspaceDefinitionAction, es.udc.mypersonalizer.admin.http.controller.actions.tasks.ExecuteTaskPreviewAction, es.udc.mypersonalizer.admin.http.controller.actions.groupmgnt.AddUserToGroupAction, es.udc.mypersonalizer.admin.http.controller.actions.workspacedefs.ShowAllWorkspaceTypesAction, es.udc.mypersonalizer.admin.http.controller.actions.propertyeditor.PropertyEditorAction,
DefaultAction | abstract public class DefaultAction extends Action (Code) | | Template action for stuts action classes that implements some of
the functionality needed for all subclasses like exception handling.
If during execution of the action, an
IllegalConcurrentAccessException is thrown, it tries to find an
ActionForward with name "IllegalConcurrentAccess" and returns it.
In case of any other exception, it tries to find an
ActionForward with name "InternalError" and returns it.
author: Daniel Fernandez author: Fernando Bellas since: 1.0 |
Method Summary | |
abstract protected ActionForward | doExecute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) Executes the action
an ActionForward with the result of the action Parameters: mapping - the action's ActionMapping Parameters: form - the ActionForm associatied with this class Parameters: request - the request object Parameters: response - the response object throws: Exception - Any exception can be thrown by the action. | protected ActionForward | doOnError(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response, Exception exception) | public ActionForward | execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) Executes an action calling doExecute. |
ACTION_FAIL_FORWARD | final public static String ACTION_FAIL_FORWARD(Code) | | The per-action forward name for the fail page. This forward is needed
in case an action can fail (without generation an exception). For
example, due to a bad data input, the user should have to be informed
of the problem without generating an exception, just a warning of any
kind.
This forward identifies the page which will report the errors, and
only actions which can fail without generating severe exception
conditions must define it.
|
ACTION_SUCCESS_FORWARD | final public static String ACTION_SUCCESS_FORWARD(Code) | | The per-action forward name for the success page. If an action is able to
execute all of its tasks correctly, it performs a forward to the
mandatory struts forward named "Success".
Every controller action must have a forward named "Success".
|
ERROR_MESSAGES_PREFIX | final public static String ERROR_MESSAGES_PREFIX(Code) | | Default prefix for error messages keys in localized resource files.
This prefix is "ErrorMessages. ".
|
ILLEGAL_CONCURRENT_ACCESS_GLOBAL_FORWARD | final public static String ILLEGAL_CONCURRENT_ACCESS_GLOBAL_FORWARD(Code) | | The global forward name for the Illegal Concurrent Access page.
This name must be "IllegalConcurrentAccess".
|
INTERNAL_ERROR_GLOBAL_FORWARD | final public static String INTERNAL_ERROR_GLOBAL_FORWARD(Code) | | The global forward name for the Internal Error page.
This name must be "InternalError".
|
MAIN_PAGE_FORWARD_PATH | final public static String MAIN_PAGE_FORWARD_PATH(Code) | | This is the path of the action that executes MainPageAction.
Must be set to "/MainPage.do"
|
doExecute | abstract protected ActionForward doExecute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception(Code) | | Executes the action
an ActionForward with the result of the action Parameters: mapping - the action's ActionMapping Parameters: form - the ActionForm associatied with this class Parameters: request - the request object Parameters: response - the response object throws: Exception - Any exception can be thrown by the action. However,it is recommended to handle all exceptions and provide meaningfulinformation to the final user. |
doOnError | protected ActionForward doOnError(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response, Exception exception)(Code) | | Performs whichever necessary actions to handle an exception
thrown during execution
an ActionForward with exception-handling page Parameters: mapping - the action's ActionMapping Parameters: form - the ActionForm associatied with this class Parameters: request - the request object Parameters: response - the response object Parameters: exception - the exception to process |
execute | public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response)(Code) | | Executes an action calling doExecute. If an exception is
thrown, it executes doOnError.
an ActionForward with the result of the action Parameters: mapping - the action's ActionMapping Parameters: form - the ActionForm associatied with this class Parameters: request - the request object Parameters: response - the response object |
|
|