This is an automated email from the ASF dual-hosted git repository.
git-site-role pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/struts-site.git
The following commit(s) were added to refs/heads/asf-site by this push:
new 4a8325a Updates production by Jenkins
4a8325a is described below
commit 4a8325a7a195baf5fff72b7b2f0c64404ff715c2
Author: jenkins <[email protected]>
AuthorDate: Wed Nov 15 05:53:21 2017 +0000
Updates production by Jenkins
---
content/getting-started/form-validation-using-xml.html | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/content/getting-started/form-validation-using-xml.html
b/content/getting-started/form-validation-using-xml.html
index 596bc62..b560c61 100644
--- a/content/getting-started/form-validation-using-xml.html
+++ b/content/getting-started/form-validation-using-xml.html
@@ -145,9 +145,9 @@
<p>To validate a user’s form field entries you can use a separate XML file
that contains your validation rules. The XML file that contains the validation
rules must be named as ActionClassName-validation.xml. In the example
application, the XML validation file is named EditAction-validation.xml (see
src/main/resources/org/apache/struts/edit/action).</p>
-<p>Struts 2 provides several different validators that you can use in the XML
validation file. See <a
href="//struts.apache.org/docs/validation.html">Validation</a> for a list of
validators you can employ.</p>
+<p>Struts 2 provides several different validators that you can use in the XML
validation file. See <a
href="../core-developers/validation.html">Validation</a> for a list of
validators you can employ.</p>
-<p>In the above form, we want to ensure the user enters a first name. To have
the Struts 2 framework enforce that rule we can used the Struts 2 <a
href="//struts.apache.org/docs/requiredstring-validator.html">requiredstring
validator</a>. This validator checks that the user has entered a string value
in the form field.</p>
+<p>In the above form, we want to ensure the user enters a first name. To have
the Struts 2 framework enforce that rule we can used the Struts 2 <a
href="../core-developers/requiredstring-validator.html">requiredstring
validator</a>. This validator checks that the user has entered a string value
in the form field.</p>
<p><strong>XML Validator Format</strong></p>
@@ -166,12 +166,12 @@
</code></pre>
</div>
-<p>Within the validators node you can have 1 or more validator nodes. The type
attribute specifies which validator you want the Struts 2 framework to use (see
<a href="//struts.apache.org/docs/validation.html">Validation</a> ). The param
name=”fieldname” node is used to tell the framework which form field entry to
apply the rule to. See edit.jsp for the form fields and their name value
(review <a href="form-tags.html">Struts 2 Form Tags</a> if you’re not familiar
with how to use Struts 2 [...]
+<p>Within the validators node you can have 1 or more validator nodes. The type
attribute specifies which validator you want the Struts 2 framework to use (see
<a href="../core-developers/validation.html">Validation</a> ). The param
name=”fieldname” node is used to tell the framework which form field entry to
apply the rule to. See edit.jsp for the form fields and their name value
(review <a href="form-tags.html">Struts 2 Form Tags</a> if you’re not familiar
with how to use Struts 2 form [...]
<table>
<tbody>
<tr>
- <td>There are alternate ways to write the XML that goes in the
validation XML file. See <a
href="//struts.apache.org/docs/validation.html">Validation</a> in the Struts 2
documentation for a full discussion.</td>
+ <td>There are alternate ways to write the XML that goes in the
validation XML file. See <a
href="../core-developers/validation.html">Validation</a> in the Struts 2
documentation for a full discussion.</td>
</tr>
</tbody>
</table>
@@ -182,7 +182,7 @@
<p><strong>Validating An Email Address</strong></p>
-<p>You can use the Struts 2 <a
href="//struts.apache.org/docs/email-validator.html">email validator</a> to
validate the user’s input in the email field. Here is the validator node that
is in the <code class="highlighter-rouge">EditAction-validation.xml</code>
file.</p>
+<p>You can use the Struts 2 <a
href="../core-developers/email-validator.html">email validator</a> to validate
the user’s input in the email field. Here is the validator node that is in the
<code class="highlighter-rouge">EditAction-validation.xml</code> file.</p>
<p><strong>Email Validator</strong></p>
@@ -201,7 +201,7 @@
<p><strong>Validating A User’s Input Using A Regular Expression</strong></p>
-<p>The Struts 2 framework provides a powerful way to validate a user’s form
field input by using the <a
href="//struts.apache.org/docs/regex-validator.html">regex validator</a> . In
the example application, we want to ensure the user enters the phone number in
the format 999-999-9999. We can use a regular expression and the <a
href="//struts.apache.org/docs/regex-validator.html">regex validator</a> to
enforce this rule.</p>
+<p>The Struts 2 framework provides a powerful way to validate a user’s form
field input by using the <a
href="../core-developers/regex-validator.html">regex validator</a> . In the
example application, we want to ensure the user enters the phone number in the
format 999-999-9999. We can use a regular expression and the <a
href="../core-developers/regex-validator.html">regex validator</a> to enforce
this rule.</p>
<p><strong>REGEX Validator</strong></p>
@@ -221,7 +221,7 @@
<p><strong>Validating A User’s Input Using An OGNL Expression</strong></p>
-<p>In the example application, we want to ensure the user checks at least one
of the car model check boxes. To enforce this rule we can use the <a
href="//struts.apache.org/docs/fieldexpression-validator.html">fieldexpression
validator</a> . Here’s the XML for that validator node.</p>
+<p>In the example application, we want to ensure the user checks at least one
of the car model check boxes. To enforce this rule we can use the <a
href="../core-developers/fieldexpression-validator.html">fieldexpression
validator</a> . Here’s the XML for that validator node.</p>
<p><strong>FieldExpression Validator</strong></p>
@@ -233,7 +233,7 @@
</code></pre>
</div>
-<p>The param name=”expression” node contains an OGNL expression that evaluates
to true or false. We haven’t previously discussed OGNL, which stands for
Object-Graph Navigation Language (see <a
href="http://www.opensymphony.com/ognl/">http://www.opensymphony.com/ognl/</a>
and <a href="//struts.apache.org/docs/ognl.html">OGNL</a> ). OGNL expressions
can be evaluated by the Struts 2 framework as Java statements.</p>
+<p>The param name=”expression” node contains an OGNL expression that evaluates
to true or false. We haven’t previously discussed OGNL, which stands for
Object-Graph Navigation Language (see <a
href="https://github.com/jkuhnert/ognl">https://github.com/jkuhnert/ognl</a>
and <a href="../core-developers/ognl.html">OGNL</a> ). OGNL expressions can be
evaluated by the Struts 2 framework as Java statements.</p>
<p>In the above XML the value of the param name=”expression” node,
personBean.carModels.length > 0, will be evaluated by the framework as a
Java statement. The part personBean.carModels tells the framework to call the
getCarModels method of class Person. That method returns an Array. Since class
Array has a length attribute, the framework will get the value of the length
attribute of the Array returned by the getCarModels method.</p>
--
To stop receiving notification emails like this one, please contact
['"[email protected]" <[email protected]>'].