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

Quick Search    Search Deep

org.acs.damsel.client.add
Class RegisterNewUserForm  view RegisterNewUserForm download RegisterNewUserForm.java

java.lang.Object
  extended byorg.apache.struts.action.ActionForm
      extended byorg.acs.damsel.client.add.RegisterNewUserForm
All Implemented Interfaces:
java.io.Serializable

public class RegisterNewUserForm
extends org.apache.struts.action.ActionForm


Field Summary
private  java.lang.String email
           
private  java.lang.String firstName
           
private  java.lang.String lastName
           
private  java.lang.String middleInitial
           
private  java.lang.String organization
           
private  java.lang.String password1
           
private  java.lang.String password2
           
private  java.lang.String userName
           
 
Fields inherited from class org.apache.struts.action.ActionForm
multipartRequestHandler, servlet
 
Constructor Summary
RegisterNewUserForm()
           
 
Method Summary
 java.lang.String getEmail()
           
 java.lang.String getFirstName()
           
 java.lang.String getLastName()
           
 java.lang.String getMiddleInitial()
           
 java.lang.String getOrganization()
           
 java.lang.String getPassword1()
           
 java.lang.String getPassword2()
           
 java.lang.String getUserName()
           
 void reset(org.apache.struts.action.ActionMapping actionMapping, javax.servlet.http.HttpServletRequest httpServletRequest)
          Reset bean properties to their default state, as needed.
 void setEmail(java.lang.String email)
           
 void setFirstName(java.lang.String firstName)
           
 void setLastName(java.lang.String lastName)
           
 void setMiddleInitial(java.lang.String middleInitial)
           
 void setOrganization(java.lang.String organization)
           
 void setPassword1(java.lang.String password1)
           
 void setPassword2(java.lang.String password2)
           
 void setUserName(java.lang.String userName)
           
 org.apache.struts.action.ActionErrors validate(org.apache.struts.action.ActionMapping actionMapping, javax.servlet.http.HttpServletRequest httpServletRequest)
          Validate the properties that have been set for this HTTP request, and return an ActionErrors object that encapsulates any validation errors that have been found.
 
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

private java.lang.String email

firstName

private java.lang.String firstName

lastName

private java.lang.String lastName

middleInitial

private java.lang.String middleInitial

organization

private java.lang.String organization

password1

private java.lang.String password1

password2

private java.lang.String password2

userName

private java.lang.String userName
Constructor Detail

RegisterNewUserForm

public RegisterNewUserForm()
Method Detail

getEmail

public java.lang.String getEmail()

setEmail

public void setEmail(java.lang.String email)

getFirstName

public java.lang.String getFirstName()

setFirstName

public void setFirstName(java.lang.String firstName)

getLastName

public java.lang.String getLastName()

setLastName

public void setLastName(java.lang.String lastName)

getMiddleInitial

public java.lang.String getMiddleInitial()

setMiddleInitial

public void setMiddleInitial(java.lang.String middleInitial)

getOrganization

public java.lang.String getOrganization()

setOrganization

public void setOrganization(java.lang.String organization)

getPassword1

public java.lang.String getPassword1()

setPassword1

public void setPassword1(java.lang.String password1)

getPassword2

public java.lang.String getPassword2()

setPassword2

public void setPassword2(java.lang.String password2)

getUserName

public java.lang.String getUserName()

setUserName

public void setUserName(java.lang.String userName)

validate

public org.apache.struts.action.ActionErrors validate(org.apache.struts.action.ActionMapping actionMapping,
                                                      javax.servlet.http.HttpServletRequest httpServletRequest)
Description copied from class: org.apache.struts.action.ActionForm

Validate the properties that have been set for this HTTP request, and return an ActionErrors object that encapsulates any validation errors that have been found. If no errors are found, return null or an ActionErrors object with no recorded error messages.

The default implementation performs no validation and returns null. Subclasses must override this method to provide any validation they wish to perform.


reset

public void reset(org.apache.struts.action.ActionMapping actionMapping,
                  javax.servlet.http.HttpServletRequest httpServletRequest)
Description copied from class: org.apache.struts.action.ActionForm

Reset bean properties to their default state, as needed. This method is called before the properties are repopulated by the controller.

The default implementation does nothing. In practice, the only properties that need to be reset are those which represent checkboxes on a session-scoped form. Otherwise, properties can be given initial values where the field is declared.

If the form is stored in session-scope so that values can be collected over multiple requests (a "wizard"), you must be very careful of which properties, if any, are reset. As mentioned, session-scope checkboxes must be reset to false for any page where this property is set. This is because the client does not submit a checkbox value when it is clear (false). If a session-scoped checkbox is not proactively reset, it can never be set to false.

This method is not the appropriate place to initialize form value for an "update" type page (this should be done in a setup Action). You mainly need to worry about setting checkbox values to false; most of the time you can leave this method unimplemented.