|
||||||||||
| 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.example.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 | |
|---|---|
java.lang.String |
getAction()
Return the maintenance action. |
boolean |
getAutoConnect()
Return the auto-connect flag. |
java.lang.String |
getHost()
Return the host name. |
java.lang.String |
getPassword()
Return the password. |
java.lang.String |
getType()
Return the subscription type. |
java.lang.String |
getUsername()
Return the username. |
void |
reset(ActionMapping mapping,
javax.servlet.http.HttpServletRequest request)
Reset all properties to their default values. |
void |
setAction(java.lang.String action)
Set the maintenance action. |
void |
setAutoConnect(boolean autoConnect)
Set the auto-connect flag. |
void |
setHost(java.lang.String host)
Set the host name. |
void |
setPassword(java.lang.String password)
Set the password. |
void |
setType(java.lang.String type)
Set the subscription type. |
void |
setUsername(java.lang.String username)
Set the username. |
java.lang.String |
toString()
Return a string representation of this form bean. |
ActionErrors |
validate(ActionMapping mapping,
javax.servlet.http.HttpServletRequest request)
Validate the properties that have been set from this HTTP request, and return an ActionMessages 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, wait, wait, wait |
| Constructor Detail |
|---|
public SubscriptionForm()
| Method Detail |
|---|
public java.lang.String getAction()
public void setAction(java.lang.String action)
action - The new maintenance action.public boolean getAutoConnect()
public void setAutoConnect(boolean autoConnect)
autoConnect - The new auto-connect flagpublic java.lang.String getHost()
public void setHost(java.lang.String host)
host - The host namepublic java.lang.String getPassword()
public void setPassword(java.lang.String password)
password - The new passwordpublic java.lang.String getType()
public void setType(java.lang.String type)
type - The subscription typepublic 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)
ActionMessages object that encapsulates any
validation errors that have been found. If no errors are found, return
null or an ActionMessages 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.DynaActionFormpublic java.lang.String toString()
Return a string representation of this form bean.
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||