com.pchauvet.struttlogin
Class ProfileUpdAction

java.lang.Object
  |
  +--org.apache.struts.action.Action
        |
        +--com.pchauvet.struttlogin.ProfileUpdAction

public final class ProfileUpdAction
extends org.apache.struts.action.Action

The MVC controller, business logic, for updating the user's profile information. Once processed, processing is fowarded to the correct JSP page. A UserProfile table entry is retrieved using an EJB connection from the UserProfileBeanEJBConnectionBean helper class.

Version:
1.0. Dated 01/13/2003 - 01/26/2003
Author:
Philip Jahmani Chauvet. abc1260@aol.com

Field Summary
 
Fields inherited from class org.apache.struts.action.Action
DATA_SOURCE_KEY, defaultLocale, ERROR_KEY, EXCEPTION_KEY, FORM_BEANS_KEY, FORWARDS_KEY, LOCALE_KEY, MAPPING_KEY, MAPPINGS_KEY, MESSAGES_KEY, MULTIPART_KEY, servlet, SERVLET_KEY, TRANSACTION_TOKEN_KEY
 
Constructor Summary
ProfileUpdAction()
           
 
Method Summary
 org.apache.struts.action.ActionForward perform(org.apache.struts.action.ActionMapping m_mapping, org.apache.struts.action.ActionForm m_form, javax.servlet.http.HttpServletRequest m_req, javax.servlet.http.HttpServletResponse m_res)
          Handles the update of User Profile information.
 
Methods inherited from class org.apache.struts.action.Action
generateToken, getLocale, getResources, getServlet, isCancelled, isTokenValid, perform, perform, perform, resetToken, saveErrors, saveToken, setLocale, setServlet, toHex
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProfileUpdAction

public ProfileUpdAction()
Method Detail

perform

public org.apache.struts.action.ActionForward perform(org.apache.struts.action.ActionMapping m_mapping,
                                                      org.apache.struts.action.ActionForm m_form,
                                                      javax.servlet.http.HttpServletRequest m_req,
                                                      javax.servlet.http.HttpServletResponse m_res)
Handles the update of User Profile information.
1. Create a session object.
2. Create an instance of the ProfileUpdForm to access the UserProfileBean instance.
3. Get the forms userid, password, firstname..... information entered by the user.
4. Clear the session attribute "userprofileUpdated" that the user information has been updated.
5. Get the UserProfile record from the UserProfile table using an EJB connection.
6. If a UserProfile record is found get the user's UserProfile record using an EJB.
7. If a UserProfile record is retrieved, set the Log-In action flags, attributes and parameters.
Set the "userprofilebean" session attribute to be used by the form ***

Overrides:
perform in class org.apache.struts.action.Action
Parameters:
m_mapping - The ActionMapping used to select this instance
m_form - The optional ActionForm bean for this request (if any)
m_res - The non-HTTP response we are creating
Returns:
ActionForward instance describing where and how control should be forwarded, or null if the response has already been completed.


Back to the Web Application
Copyright © 2003 Philip Chauvet: (718) 241.3602 or abc1260@aol.com.
Permission is granted to reuse and distribute for commercial or personal use.
I am looking for work and would appreciate doing business with you and developing J2EE applications for you.