java.lang.Object
org.apache.struts.action.ActionForm
com.RuntimeCollective.webapps.form.EmailPasswordForm
- All Implemented Interfaces:
- java.io.Serializable
- public class EmailPasswordForm
- extends org.apache.struts.action.ActionForm
Object that represents basic user details. Can be used for registering a new user, or logging in or editing a new one.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
email
protected java.lang.String email
- The email address of the user. Also used as the unique login identifier.
EmailPasswordForm
public EmailPasswordForm()
getEmail
public java.lang.String getEmail()
- Get the email address of the user. Also used as the unique login identifier.
setEmail
public void setEmail(java.lang.String email)
- Set the email address of the user. Also used as the unique login identifier.
validate
public org.apache.struts.action.ActionErrors validate(org.apache.struts.action.ActionMapping mapping,
javax.servlet.http.HttpServletRequest request)
- Validate logon field entries.
Error codes returned:
error.logon.null - if either the email or password is "".
error.logon.invalidEmail - if the email address is not valid.
error.user.confirm - if the confirmation does not match the password.
error.logon.passwordShort - if the password was < 6 letters
reset
public void reset(org.apache.struts.action.ActionMapping mapping,
javax.servlet.http.HttpServletRequest request)
- Reset all properties to default values.