|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.struts.action.ActionForm
org.apache.struts.validator.ValidatorForm
org.apache.struts.webapp.example.RegistrationForm
Form bean for the user registration page. This form has the following fields, with default values in square brackets:
Field Summary | |
private String |
action
The maintenance action we are performing (Create or Edit). |
private String |
fromAddress
The from address. |
private String |
fullName
The full name. |
private String |
password
The password. |
private String |
password2
The confirmation password. |
private String |
replyToAddress
The reply to address. |
private String |
username
The username. |
Fields inherited from class org.apache.struts.validator.ValidatorForm |
page, validatorResults |
Fields inherited from class org.apache.struts.action.ActionForm |
multipartRequestHandler, servlet |
Constructor Summary | |
RegistrationForm()
|
Method Summary | |
String |
getAction()
Return the maintenance action. |
String |
getFromAddress()
Return the from address. |
String |
getFullName()
Return the full name. |
String |
getPassword()
Return the password. |
String |
getPassword2()
Return the confirmation password. |
String |
getReplyToAddress()
Return the reply to address. |
String |
getUsername()
Return the username. |
void |
reset(org.apache.struts.action.ActionMapping mapping,
javax.servlet.http.HttpServletRequest request)
Reset all properties to their default values. |
void |
setAction(String action)
Set the maintenance action. |
void |
setFromAddress(String fromAddress)
Set the from address. |
void |
setFullName(String fullName)
Set the full name. |
void |
setPassword(String password)
Set the password. |
void |
setPassword2(String password2)
Set the confirmation password. |
void |
setReplyToAddress(String replyToAddress)
Set the reply to address. |
void |
setUsername(String username)
Set the username. |
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. |
Methods inherited from class org.apache.struts.validator.ValidatorForm |
getPage, getResultValueMap, getValidationKey, getValidatorResults, setPage, setValidatorResults |
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 |
private String action
private String fromAddress
private String fullName
private String password
private String password2
private String replyToAddress
private String username
Constructor Detail |
public RegistrationForm()
Method Detail |
public String getAction()
public void setAction(String action)
action
- The new maintenance action.public String getFromAddress()
public void setFromAddress(String fromAddress)
fromAddress
- The new from addresspublic String getFullName()
public void setFullName(String fullName)
fullName
- The new full namepublic String getPassword()
public void setPassword(String password)
password
- The new passwordpublic String getPassword2()
public void setPassword2(String password2)
password2
- The new confirmation passwordpublic String getReplyToAddress()
public void setReplyToAddress(String replyToAddress)
replyToAddress
- The new reply to addresspublic String getUsername()
public void setUsername(String username)
username
- The new usernamepublic void reset(org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest request)
mapping
- The mapping used to select this instancerequest
- The servlet request we are processingpublic org.apache.struts.action.ActionErrors validate(org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest request)
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.
mapping
- The mapping used to select this instancerequest
- The servlet request we are processing
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |