com.softslate.commerce.customer.customer
Class RegisterForm
java.lang.Object
org.apache.struts.action.ActionForm
com.softslate.commerce.customer.core.BaseForm
com.softslate.commerce.customer.customer.AccountForm
com.softslate.commerce.customer.customer.RegisterForm
- All Implemented Interfaces:
- java.io.Serializable
- public class RegisterForm
- extends AccountForm
Struts form class for submissions to register a new customer account. Used
for requests to "/Register.do".
The validate
method of this class checks for the existance of
the userName
and password
properties, and
checks that the password
property matches the
confirmPassword
property.
It also checks the length of the password against the "minimumPasswordLength"
database setting. If the "keepUserNameAndEmailInSync" setting is on, it will
verify that the user name is a valid email address and copy the user name to
the email1
property.
- Author:
- David Tobey
- See Also:
- Serialized Form
Fields inherited from class com.softslate.commerce.customer.customer.AccountForm |
|
Fields inherited from class com.softslate.commerce.customer.core.BaseForm |
|
Fields inherited from class org.apache.struts.action.ActionForm |
multipartRequestHandler, servlet |
Methods inherited from class com.softslate.commerce.customer.core.BaseForm |
getBusinessObjectFactory, getErrors, getMapping, getMessage, getMessages, getRequest, getSettingsBean, getUser, initializeProperties, setBusinessObjectFactory, setErrors, setMapping, setMessages, setRequest, setSettingsBean, setUser |
Methods inherited from class org.apache.struts.action.ActionForm |
getMultipartRequestHandler, getServlet, getServletWrapper, reset, reset, setMultipartRequestHandler, setServlet, validate |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
log
static org.apache.commons.logging.Log log
userName
private java.lang.String userName
email1
private java.lang.String email1
password
private java.lang.String password
confirmPassword
private java.lang.String confirmPassword
RegisterForm
public RegisterForm()
getUserName
public java.lang.String getUserName()
setUserName
public void setUserName(java.lang.String userName)
getEmail1
public java.lang.String getEmail1()
setEmail1
public void setEmail1(java.lang.String email1)
getPassword
public java.lang.String getPassword()
setPassword
public void setPassword(java.lang.String password)
getConfirmPassword
public java.lang.String getConfirmPassword()
setConfirmPassword
public void setConfirmPassword(java.lang.String confirmPassword)
validate
public org.apache.struts.action.ActionErrors validate(org.apache.struts.action.ActionMapping mapping,
javax.servlet.http.HttpServletRequest request)
Copyright © SoftSlate, Inc. 20032005