com.pchauvet.struttlogin
Class ProfileCrtForm
java.lang.Object
|
+--org.apache.struts.action.ActionForm
|
+--com.pchauvet.struttlogin.ProfileCrtForm
- All Implemented Interfaces:
- java.io.Serializable
- public class ProfileCrtForm
- extends org.apache.struts.action.ActionForm
The MVC controller for validating the creating 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
| Fields inherited from class org.apache.struts.action.ActionForm |
multipartRequestHandler, servlet |
|
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 |
ProfileCrtForm
public ProfileCrtForm()
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 instancem_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 errors, if any.
- Overrides:
validate in class org.apache.struts.action.ActionForm
- Parameters:
m_mapping - The m_mapping used to select this instancem_req - The servlet req we are processing
- Returns:
- ActionErrors The form errors, or null
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.