com.clra.web
Class LogonForm
java.lang.Object
|
+--org.apache.struts.action.ActionForm
|
+--com.clra.web.LogonForm
- All Implemented Interfaces:
- Serializable
- public final class LogonForm
- extends org.apache.struts.action.ActionForm
Form bean for the user profile page. This form has the following fields,
with default values in square brackets:
- password - Entered password value
- username - Entered username value
From the struts documentation.
- Version:
- $Revision: 1.2 $ $Date: 2002/02/18 18:06:16 $
- Author:
- Craig R. McClanahan
-- original author, Rick Hall
-- adapted to CLRA
- See Also:
- Serialized Form
Fields inherited from class org.apache.struts.action.ActionForm |
multipartRequestHandler, servlet |
Method Summary |
String |
getPassword()
Return the password |
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 |
setPassword(String password)
Set the password. |
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.action.ActionForm |
getMultipartRequestHandler, getServlet, reset, setMultipartRequestHandler, setServlet, validate, validate |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LogonForm
public LogonForm()
getPassword
public String getPassword()
- Return the password
setPassword
public void setPassword(String password)
- Set the password.
- Parameters:
password
- The new password
getUsername
public String getUsername()
- Return the username
setUsername
public void setUsername(String username)
- Set the username.
- Parameters:
username
- The new username
reset
public void reset(org.apache.struts.action.ActionMapping mapping,
javax.servlet.http.HttpServletRequest request)
- Reset all properties to their default values.
- Overrides:
reset
in class org.apache.struts.action.ActionForm
- Parameters:
mapping
- The mapping used to select this instancerequest
- The servlet request we are processing
validate
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.
- Overrides:
validate
in class org.apache.struts.action.ActionForm
- Parameters:
mapping
- The mapping used to select this instancerequest
- The servlet request we are processing