Java Doc for RegistrationAction.java in  » Web-Framework » struts-1.3.8 » org » apache » struts » apps » mailreader » 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 » Web Framework » struts 1.3.8 » org.apache.struts.apps.mailreader.actions 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.struts.apps.mailreader.actions.BaseAction
   org.apache.struts.apps.mailreader.actions.RegistrationAction

RegistrationAction
final public class RegistrationAction extends BaseAction (Code)

Provide an Edit method for retrieving an existing user, and a Save method for updating or inserting a user.

Both methods utilize a RegistrationForm to obtain or expose User details. If Save is used to create a user, additional validations ensure input is nominal. When a user is created, Save also handles the initial logon.



Field Summary
final public static  StringFROM_ADDRESS
    

Name of fromAddress field ["fromAddress"].

final public static  StringFULL_NAME
    

Name of fullName field ["fullName"].

final  StringLOG_REGISTRATION_POPULATE
    

The message prefix to use when populating a Registration Form.

final public static  StringPASSWORD2
    

Name of password confirmation field ["password2"].

final public static  StringREPLY_TO_ADDRESS
    

Name of replyToAddress field ["replyToAddress"].



Method Summary
public  ActionForwardEdit(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response)
    

Retrieve the User object to edit or null if the User does not exist, and set an transactional token to later detect multiple Save commands.

public  ActionForwardSave(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response)
    

Insert or update a User object to the persistent store.


Field Detail
FROM_ADDRESS
final public static String FROM_ADDRESS(Code)

Name of fromAddress field ["fromAddress"].




FULL_NAME
final public static String FULL_NAME(Code)

Name of fullName field ["fullName"].




LOG_REGISTRATION_POPULATE
final String LOG_REGISTRATION_POPULATE(Code)

The message prefix to use when populating a Registration Form.




PASSWORD2
final public static String PASSWORD2(Code)

Name of password confirmation field ["password2"].




REPLY_TO_ADDRESS
final public static String REPLY_TO_ADDRESS(Code)

Name of replyToAddress field ["replyToAddress"].






Method Detail
Edit
public ActionForward Edit(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception(Code)

Retrieve the User object to edit or null if the User does not exist, and set an transactional token to later detect multiple Save commands.


Parameters:
  mapping - Our ActionMapping
Parameters:
  form - Our ActionForm
Parameters:
  request - Our HttpServletRequest
Parameters:
  response - Our HttpServletResponse The "Success" result for this mapping
throws:
  Exception - on any error



Save
public ActionForward Save(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception(Code)

Insert or update a User object to the persistent store.

If a User is not logged in, then a new User is created and automatically logged in. Otherwise, the existing User is updated.


Parameters:
  mapping - Our ActionMapping
Parameters:
  form - Our ActionForm
Parameters:
  request - Our HttpServletRequest
Parameters:
  response - Our HttpServletResponse The "Success" result for this mapping
throws:
  Exception - on any error



Fields inherited from org.apache.struts.apps.mailreader.actions.BaseAction
public static String PASSWORD(Code)(Java Doc)
final public static String TASK(Code)(Java Doc)
public static String USERNAME(Code)(Java Doc)
protected Log log(Code)(Java Doc)

Methods inherited from org.apache.struts.apps.mailreader.actions.BaseAction
void doCacheUser(HttpServletRequest request, User user)(Code)(Java Doc)
protected void doCancel(HttpSession session, String method, String key)(Code)(Java Doc)
protected ActionForward doFindFailure(ActionMapping mapping)(Code)(Java Doc)
protected ActionForward doFindLogon(ActionMapping mapping)(Code)(Java Doc)
protected ActionForward doFindSuccess(ActionMapping mapping)(Code)(Java Doc)
protected String doGet(ActionForm form, String property)(Code)(Java Doc)
protected Subscription doGetSubscription(HttpSession session)(Code)(Java Doc)
protected Subscription doGetSubscription(HttpServletRequest request)(Code)(Java Doc)
User doGetUser(UserDatabase database, String username, String password, ActionMessages errors) throws ExpiredPasswordException(Code)(Java Doc)
User doGetUser(String username, String password, ActionMessages errors) throws ExpiredPasswordException(Code)(Java Doc)
protected User doGetUser(HttpSession session)(Code)(Java Doc)
protected User doGetUser(HttpServletRequest request)(Code)(Java Doc)
protected UserDatabase doGetUserDatabase()(Code)(Java Doc)
protected ActionForward doInputForward(ActionMapping mapping, HttpServletRequest request, ActionMessages errors)(Code)(Java Doc)
protected void doLogProcess(ActionMapping mapping, String method)(Code)(Java Doc)
protected void doSaveToken(HttpServletRequest request)(Code)(Java Doc)
protected void doSaveUser(User user) throws ServletException(Code)(Java Doc)
protected boolean doSet(ActionForm form, String property, String value)(Code)(Java Doc)

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