|
||||||||||
| 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.webapp.example2.LogonForm
public final class LogonForm
Form bean for the user profile page. This form has the following fields, with default values in square brackets:
| Field Summary |
|---|
| Fields inherited from class org.apache.struts.action.ActionForm |
|---|
multipartRequestHandler, servlet |
| Constructor Summary | |
|---|---|
LogonForm()
|
|
| Method Summary | |
|---|---|
java.lang.String |
getPassword()
Return the password. |
java.lang.String |
getUsername()
Return the username. |
void |
reset(ActionMapping mapping,
javax.servlet.http.HttpServletRequest request)
Reset all properties to their default values. |
void |
setPassword(java.lang.String password)
Set the password. |
void |
setUsername(java.lang.String username)
Set the username. |
ActionErrors |
validate(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.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 |
| Constructor Detail |
|---|
public LogonForm()
| Method Detail |
|---|
public java.lang.String getPassword()
public void setPassword(java.lang.String password)
password - The new passwordpublic java.lang.String getUsername()
public void setUsername(java.lang.String username)
username - The new username
public void reset(ActionMapping mapping,
javax.servlet.http.HttpServletRequest request)
reset in class ActionFormmapping - The mapping used to select this instancerequest - The servlet request we are processing
public ActionErrors validate(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.
validate in class ActionFormmapping - The mapping used to select this instancerequest - The servlet request we are processing
null if validation succeeded.DynaActionForm
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||