|
||||||||||
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.SubscriptionForm
public final class SubscriptionForm
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 | |
---|---|
SubscriptionForm()
|
Method Summary | |
---|---|
String |
getAction()
Return the maintenance action. |
boolean |
getAutoConnect()
Return the auto-connect flag. |
String |
getHost()
Return the host name. |
String |
getPassword()
Return the password. |
String |
getType()
Return the subscription type. |
String |
getUsername()
Return the username. |
void |
reset(ActionMapping mapping,
HttpServletRequest request)
Reset all properties to their default values. |
void |
setAction(String action)
Set the maintenance action. |
void |
setAutoConnect(boolean autoConnect)
Set the auto-connect flag. |
void |
setHost(String host)
Set the host name. |
void |
setPassword(String password)
Set the password. |
void |
setType(String type)
Set the subscription type. |
void |
setUsername(String username)
Set the username. |
ActionErrors |
validate(ActionMapping mapping,
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 SubscriptionForm()
Method Detail |
---|
public String getAction()
public void setAction(String action)
action
- The new maintenance action.public boolean getAutoConnect()
public void setAutoConnect(boolean autoConnect)
autoConnect
- The new auto-connect flagpublic String getHost()
public void setHost(String host)
host
- The host namepublic String getPassword()
public void setPassword(String password)
password
- The new passwordpublic String getType()
public void setType(String type)
type
- The subscription typepublic String getUsername()
public void setUsername(String username)
username
- The new usernamepublic void reset(ActionMapping mapping, HttpServletRequest request)
reset
in class ActionForm
mapping
- The mapping used to select this instancerequest
- The servlet request we are processingpublic ActionErrors validate(ActionMapping mapping, 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 ActionForm
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 |