Methods Summary |
---|
public java.lang.String | getAction()Return the maintenance action.
// ----------------------------------------------------------- Properties
return (this.action);
|
public java.lang.String | getFromAddress()Return the from address.
return (this.fromAddress);
|
public java.lang.String | getFullName()Return the full name.
return (this.fullName);
|
public java.lang.String | getPassword()Return the password.
return (this.password);
|
public java.lang.String | getPassword2()Return the confirmation password.
return (this.password2);
|
public java.lang.String | getReplyToAddress()Return the reply to address.
return (this.replyToAddress);
|
public java.lang.String | getUsername()Return the username.
return (this.username);
|
public void | reset(org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest request)Reset all properties to their default values.
this.action = "Create";
this.fromAddress = null;
this.fullName = null;
this.password = null;
this.password2 = null;
this.replyToAddress = null;
this.username = null;
|
public void | setAction(java.lang.String action)Set the maintenance action.
this.action = action;
|
public void | setFromAddress(java.lang.String fromAddress)Set the from address.
this.fromAddress = fromAddress;
|
public void | setFullName(java.lang.String fullName)Set the full name.
this.fullName = fullName;
|
public void | setPassword(java.lang.String password)Set the password.
this.password = password;
|
public void | setPassword2(java.lang.String password2)Set the confirmation password.
this.password2 = password2;
|
public void | setReplyToAddress(java.lang.String replyToAddress)Set the reply to address.
this.replyToAddress = replyToAddress;
|
public void | setUsername(java.lang.String username)Set the username.
this.username = username;
|
public org.apache.struts.action.ActionErrors | validate(org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest request)Validate the properties that have been set from 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.
// Perform validator framework validations
ActionErrors errors = super.validate(mapping, request);
// Only need crossfield validations here
if (!password.equals(password2)) {
errors.add("password2",
new ActionError("error.password.match"));
}
return errors;
|