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.RegisterForm
- All Implemented Interfaces:
- java.io.Serializable
public class RegisterForm
- extends BaseForm
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 decryptedPassword
properties,
and checks that the decryptedPassword
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.
If the "useImageVerificationWithRegistrations" setting is set, it also
checked the entered text against the Jcaptcha image that was presented.
- Author:
- David Tobey
- See Also:
- Serialized Form
Fields inherited from class org.apache.struts.action.ActionForm |
multipartRequestHandler, servlet |
Methods inherited from class com.softslate.commerce.customer.core.BaseForm |
formUtils, getBusinessObjectFactory, getErrors, getMapping, getMessage, getMessages, getRequest, getSettings, getUser, initializeProperties, setBusinessObjectFactory, setErrors, setMapping, setMessages, setRequest, setSettings, 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
decryptedPassword
private java.lang.String decryptedPassword
confirmPassword
private java.lang.String confirmPassword
textFromImage
private java.lang.String textFromImage
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)
getDecryptedPassword
public java.lang.String getDecryptedPassword()
setDecryptedPassword
public void setDecryptedPassword(java.lang.String decryptedPassword)
getConfirmPassword
public java.lang.String getConfirmPassword()
setConfirmPassword
public void setConfirmPassword(java.lang.String confirmPassword)
getTextFromImage
public java.lang.String getTextFromImage()
setTextFromImage
public void setTextFromImage(java.lang.String textFromImage)
validate
public org.apache.struts.action.ActionErrors validate(org.apache.struts.action.ActionMapping mapping,
javax.servlet.http.HttpServletRequest request)
- Overrides:
validate
in class org.apache.struts.action.ActionForm
Copyright © SoftSlate, LLC 20032005