|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectorg.apache.struts.action.ActionForm
org.apache.struts.validator.ValidatorForm
This class extends ActionForm and provides basic field validation based on an XML file. The key passed into the validator is the action element's 'name' attribute from the struts-config.xml which should match the form element's name attribute in the validation.xml.
ValidatorPlugin definition in struts-config.xml
for validation rules.
ActionForm,
直列化された形式| フィールドの概要 | |
private static org.apache.commons.logging.Log |
log
Commons Logging instance. |
protected int |
page
Used to indicate the current page of a multi-page form. |
protected org.apache.commons.validator.ValidatorResults |
validatorResults
The results returned from the validation performed by the Validator. |
| クラス org.apache.struts.action.ActionForm から継承したフィールド |
multipartRequestHandler, servlet |
| コンストラクタの概要 | |
ValidatorForm()
|
|
| メソッドの概要 | |
int |
getPage()
Gets page. |
java.util.Map |
getResultValueMap()
Returns a Map of values returned
from any validation that returns a value other than
null or Boolean with the
key the full property path of the field. |
org.apache.commons.validator.ValidatorResults |
getValidatorResults()
Get results of the validation performed by the Validator. |
protected void |
log(java.lang.String message)
推奨されていません。 Use common-logging to log debug messages. |
protected void |
log(java.lang.String message,
java.lang.Throwable throwable)
推奨されていません。 Use common-logging to log debug messages. |
void |
reset(ActionMapping mapping,
javax.servlet.http.HttpServletRequest request)
Reset all properties to their default values. |
void |
setPage(int page)
Sets page. |
void |
setValidatorResults(org.apache.commons.validator.ValidatorResults validatorResults)
Set results of the validation performed by the Validator. |
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. |
| クラス org.apache.struts.action.ActionForm から継承したメソッド |
getMultipartRequestHandler, getServlet, getServletWrapper, reset, setMultipartRequestHandler, setServlet, validate |
| クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| フィールドの詳細 |
private static org.apache.commons.logging.Log log
protected org.apache.commons.validator.ValidatorResults validatorResults
Validator.
protected int page
| コンストラクタの詳細 |
public ValidatorForm()
| メソッドの詳細 |
public int getPage()
public void setPage(int page)
page - page number
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.
ActionForm 内の validatemapping - The mapping used to select this instancerequest - The servlet request we are processing
ActionErrors object that encapsulates any validation errorsprotected void log(java.lang.String message)
message - String that describes the error or exception
protected void log(java.lang.String message,
java.lang.Throwable throwable)
message - String that describes the error or exceptionthrowable - Throwable error or exception
public void reset(ActionMapping mapping,
javax.servlet.http.HttpServletRequest request)
ActionForm 内の resetmapping - The mapping used to select this instancerequest - The servlet request we are processingpublic org.apache.commons.validator.ValidatorResults getValidatorResults()
Validator.
public void setValidatorResults(org.apache.commons.validator.ValidatorResults validatorResults)
Validator.
validatorResults - results of validationpublic java.util.Map getResultValueMap()
Map of values returned
from any validation that returns a value other than
null or Boolean with the
key the full property path of the field.
Map of non-null values
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||