|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.struts.action.ActionForm
examples.simple.SimpleActionForm
public class SimpleActionForm
A simple ActionForm
Field Summary |
---|
Fields inherited from class org.apache.struts.action.ActionForm |
---|
multipartRequestHandler, servlet |
Constructor Summary | |
---|---|
SimpleActionForm()
Constructor for MultiboxActionForm. |
Method Summary | |
---|---|
String |
getColor()
Returns the color. |
boolean |
getConfirm()
Returns the confirm. |
String |
getHidden()
Returns the hidden. |
String |
getMessage()
Returns the message. |
String |
getName()
Returns the name. |
String |
getRating()
Returns the rating. |
String |
getSecret()
Returns the secret. |
void |
reset(ActionMapping mapping,
HttpServletRequest request)
Reset all properties to their default values. |
void |
setColor(String color)
Sets the color. |
void |
setConfirm(boolean confirm)
Sets the confirm. |
void |
setHidden(String hidden)
Sets the hidden. |
void |
setMessage(String message)
Sets the message. |
void |
setName(String name)
Sets the name. |
void |
setRating(String rating)
Sets the rating. |
void |
setSecret(String secret)
Sets the secret. |
ActionErrors |
validate(ActionMapping mapping,
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, toString, wait, wait, wait |
Constructor Detail |
---|
public SimpleActionForm()
Method Detail |
---|
public 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)
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 ActionForm
mapping
- The mapping used to select this instancerequest
- The servlet request we are processing
public String getColor()
public boolean getConfirm()
public String getHidden()
public String getMessage()
public String getName()
public String getRating()
public String getSecret()
public void setColor(String color)
color
- The color to setpublic void setConfirm(boolean confirm)
confirm
- The confirm to setpublic void setHidden(String hidden)
hidden
- The hidden to setpublic void setMessage(String message)
message
- The message to setpublic void setName(String name)
name
- The name to setpublic void setRating(String rating)
rating
- The rating to setpublic void setSecret(String secret)
secret
- The secret to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |