com.pchauvet.struttlogin
Class ProfileUpdForm

java.lang.Object
  |
  +--org.apache.struts.action.ActionForm
        |
        +--com.pchauvet.struttlogin.ProfileUpdForm
All Implemented Interfaces:
java.io.Serializable

public class ProfileUpdForm
extends org.apache.struts.action.ActionForm

The MVC controller for validating the updating of the User Profile form data elements. A UserProfileBean is created for the user's session. It captures the users profile information from the UserProfile table.

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

Field Summary
 
Fields inherited from class org.apache.struts.action.ActionForm
multipartRequestHandler, servlet
 
Constructor Summary
ProfileUpdForm()
           
 
Method Summary
 com.pchauvet.struttlogin.UserProfileBean getUserProfile()
           
 void reset(org.apache.struts.action.ActionMapping m_mapping, javax.servlet.http.HttpServletRequest m_req)
          Reset all properties to their default values.
 void setUserProfile(com.pchauvet.struttlogin.UserProfileBean m_userprofilebean)
          Set the UserProfileBean data member.
 org.apache.struts.action.ActionErrors validate(org.apache.struts.action.ActionMapping m_mapping, javax.servlet.http.HttpServletRequest m_req)
          1.
 
Methods inherited from class org.apache.struts.action.ActionForm
getMultipartRequestHandler, getServlet, reset, setMultipartRequestHandler, setServlet, validate, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProfileUpdForm

public ProfileUpdForm()
Method Detail

setUserProfile

public void setUserProfile(com.pchauvet.struttlogin.UserProfileBean m_userprofilebean)
Set the UserProfileBean data member.


getUserProfile

public com.pchauvet.struttlogin.UserProfileBean getUserProfile()
Returns:
UserProfileBean The UserProfileBean data member

reset

public void reset(org.apache.struts.action.ActionMapping m_mapping,
                  javax.servlet.http.HttpServletRequest m_req)
Reset all properties to their default values.

Overrides:
reset in class org.apache.struts.action.ActionForm
Parameters:
m_mapping - The m_mapping used to select this instance
m_req - The servlet req we are processing

validate

public org.apache.struts.action.ActionErrors validate(org.apache.struts.action.ActionMapping m_mapping,
                                                      javax.servlet.http.HttpServletRequest m_req)
1. Get the forms data elements.
2. Validate the data entry form.
3. Create a UserProfileBean,
4. Set the UserProfileBean as a session attribute to send to the data entry form.
5. Return the error.

Overrides:
validate in class org.apache.struts.action.ActionForm
Parameters:
m_mapping - The m_mapping used to select this instance
m_req - The servlet req we are processing
Returns:
ActionErrors The form errors, or null