Java Doc for DefaultAction.java in  » Portal » mypersonalizer » es » udc » mypersonalizer » kernel » controller » actions » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Portal » mypersonalizer » es.udc.mypersonalizer.kernel.controller.actions 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


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



Field Summary
final public static  StringACTION_FAIL_FORWARD
     The per-action forward name for the fail page.
final public static  StringACTION_SUCCESS_FORWARD
     The per-action forward name for the success page.
final public static  StringERROR_MESSAGES_PREFIX
     Default prefix for error messages keys in localized resource files.

This prefix is "ErrorMessages.".

final public static  StringILLEGAL_CONCURRENT_ACCESS_GLOBAL_FORWARD
     The global forward name for the Illegal Concurrent Access page.

This name must be "IllegalConcurrentAccess".

final public static  StringINTERNAL_ERROR_GLOBAL_FORWARD
     The global forward name for the Internal Error page.

This name must be "InternalError".

final public static  StringMAIN_PAGE_FORWARD_PATH
    


Method Summary
abstract protected  ActionForwarddoExecute(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  ActionForwarddoOnError(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response, Exception exception)
    
public  ActionForwardexecute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response)
     Executes an action calling doExecute.

Field Detail
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"






Method Detail
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



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.