Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.RuntimeCollective.webapps.form
Class EmailPasswordForm  view EmailPasswordForm download EmailPasswordForm.java

java.lang.Object
  extended byorg.apache.struts.action.ActionForm
      extended bycom.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.


Field Summary
protected  java.lang.String email
          The email address of the user.
 
Fields inherited from class org.apache.struts.action.ActionForm
multipartRequestHandler, servlet
 
Constructor Summary
EmailPasswordForm()
           
 
Method Summary
 java.lang.String getEmail()
          Get the email address of the user.
 void reset(org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest request)
          Reset all properties to default values.
 void setEmail(java.lang.String email)
          Set the email address of the user.
 org.apache.struts.action.ActionErrors validate(org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest request)
          Validate logon field entries.
 
Methods inherited from class org.apache.struts.action.ActionForm
getMultipartRequestHandler, getServlet, getServletWrapper, reset, setMultipartRequestHandler, setServlet, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

email

protected java.lang.String email
The email address of the user. Also used as the unique login identifier.

Constructor Detail

EmailPasswordForm

public EmailPasswordForm()
Method Detail

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.