(empty log message)
@@ -1,315 +0,0 @@ | ||
1 | -<!DOCTYPE form-validation PUBLIC | |
2 | - "-//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.1.3//EN" | |
3 | - "http://jakarta.apache.org/commons/dtds/validator_1_1_3.dtd"> | |
4 | -<!-- | |
5 | - | |
6 | - This file contains the default Struts Validator pluggable validator | |
7 | - definitions. It should be placed somewhere under /WEB-INF and | |
8 | - referenced in the struts-config.xml under the plug-in element | |
9 | - for the ValidatorPlugIn. | |
10 | - | |
11 | - <plug-in className="org.apache.struts.validator.ValidatorPlugIn"> | |
12 | - <set-property property="pathnames" value="/WEB-INF/validator-rules.xml, | |
13 | - /WEB-INF/validation.xml"/> | |
14 | - </plug-in> | |
15 | - | |
16 | - These are the default error messages associated with | |
17 | - each validator defined in this file. They should be | |
18 | - added to your projects ApplicationResources.properties | |
19 | - file or you can associate new ones by modifying the | |
20 | - pluggable validators msg attributes in this file. | |
21 | - | |
22 | - # Struts Validator Error Messages | |
23 | - errors.required={0} is required. | |
24 | - errors.minlength={0} can not be less than {1} characters. | |
25 | - errors.maxlength={0} can not be greater than {1} characters. | |
26 | - errors.invalid={0} is invalid. | |
27 | - | |
28 | - errors.byte={0} must be a byte. | |
29 | - errors.short={0} must be a short. | |
30 | - errors.integer={0} must be an integer. | |
31 | - errors.long={0} must be a long. | |
32 | - errors.float={0} must be a float. | |
33 | - errors.double={0} must be a double. | |
34 | - | |
35 | - errors.date={0} is not a date. | |
36 | - errors.range={0} is not in the range {1} through {2}. | |
37 | - errors.creditcard={0} is an invalid credit card number. | |
38 | - errors.email={0} is an invalid e-mail address. | |
39 | - errors.url={0} is an invalid url (web address). | |
40 | - | |
41 | - errors.minbytelength={0} can not be less than {1} bytes. | |
42 | - errors.maxbytelength={0} can not be greater than {1} bytes. | |
43 | - | |
44 | - Note: Starting in Struts 1.2.0 the default javascript definitions have | |
45 | - been consolidated to commons-validator. The default can be overridden | |
46 | - by supplying a <javascript> element with a CDATA section, just as | |
47 | - in struts 1.1. | |
48 | - | |
49 | ---> | |
50 | - | |
51 | -<form-validation> | |
52 | - | |
53 | - <global> | |
54 | - | |
55 | - <validator name="required" | |
56 | - classname="org.apache.struts.validator.FieldChecks" | |
57 | - method="validateRequired" | |
58 | - methodParams="java.lang.Object, | |
59 | - org.apache.commons.validator.ValidatorAction, | |
60 | - org.apache.commons.validator.Field, | |
61 | - org.apache.struts.action.ActionMessages, | |
62 | - org.apache.commons.validator.Validator, | |
63 | - javax.servlet.http.HttpServletRequest" | |
64 | - msg="errors.required"/> | |
65 | - | |
66 | - <validator name="requiredif" | |
67 | - classname="org.apache.struts.validator.FieldChecks" | |
68 | - method="validateRequiredIf" | |
69 | - methodParams="java.lang.Object, | |
70 | - org.apache.commons.validator.ValidatorAction, | |
71 | - org.apache.commons.validator.Field, | |
72 | - org.apache.struts.action.ActionMessages, | |
73 | - org.apache.commons.validator.Validator, | |
74 | - javax.servlet.http.HttpServletRequest" | |
75 | - msg="errors.required"/> | |
76 | - | |
77 | - <validator name="validwhen" | |
78 | - msg="errors.required" | |
79 | - classname="org.apache.struts.validator.validwhen.ValidWhen" | |
80 | - method="validateValidWhen" | |
81 | - methodParams="java.lang.Object, | |
82 | - org.apache.commons.validator.ValidatorAction, | |
83 | - org.apache.commons.validator.Field, | |
84 | - org.apache.struts.action.ActionMessages, | |
85 | - org.apache.commons.validator.Validator, | |
86 | - javax.servlet.http.HttpServletRequest"/> | |
87 | - | |
88 | - | |
89 | - <validator name="minlength" | |
90 | - classname="org.apache.struts.validator.FieldChecks" | |
91 | - method="validateMinLength" | |
92 | - methodParams="java.lang.Object, | |
93 | - org.apache.commons.validator.ValidatorAction, | |
94 | - org.apache.commons.validator.Field, | |
95 | - org.apache.struts.action.ActionMessages, | |
96 | - org.apache.commons.validator.Validator, | |
97 | - javax.servlet.http.HttpServletRequest" | |
98 | - depends="" | |
99 | - msg="errors.minlength" | |
100 | - jsFunction="org.apache.commons.validator.javascript.validateMinLength"/> | |
101 | - | |
102 | - | |
103 | - <validator name="maxlength" | |
104 | - classname="org.apache.struts.validator.FieldChecks" | |
105 | - method="validateMaxLength" | |
106 | - methodParams="java.lang.Object, | |
107 | - org.apache.commons.validator.ValidatorAction, | |
108 | - org.apache.commons.validator.Field, | |
109 | - org.apache.struts.action.ActionMessages, | |
110 | - org.apache.commons.validator.Validator, | |
111 | - javax.servlet.http.HttpServletRequest" | |
112 | - depends="" | |
113 | - msg="errors.maxlength" | |
114 | - jsFunction="org.apache.commons.validator.javascript.validateMaxLength"/> | |
115 | - | |
116 | - | |
117 | - | |
118 | - <validator name="mask" | |
119 | - classname="org.apache.struts.validator.FieldChecks" | |
120 | - method="validateMask" | |
121 | - methodParams="java.lang.Object, | |
122 | - org.apache.commons.validator.ValidatorAction, | |
123 | - org.apache.commons.validator.Field, | |
124 | - org.apache.struts.action.ActionMessages, | |
125 | - org.apache.commons.validator.Validator, | |
126 | - javax.servlet.http.HttpServletRequest" | |
127 | - depends="" | |
128 | - msg="errors.invalid"/> | |
129 | - | |
130 | - | |
131 | - <validator name="byte" | |
132 | - classname="org.apache.struts.validator.FieldChecks" | |
133 | - method="validateByte" | |
134 | - methodParams="java.lang.Object, | |
135 | - org.apache.commons.validator.ValidatorAction, | |
136 | - org.apache.commons.validator.Field, | |
137 | - org.apache.struts.action.ActionMessages, | |
138 | - org.apache.commons.validator.Validator, | |
139 | - javax.servlet.http.HttpServletRequest" | |
140 | - depends="" | |
141 | - msg="errors.byte" | |
142 | - jsFunctionName="ByteValidations"/> | |
143 | - | |
144 | - | |
145 | - <validator name="short" | |
146 | - classname="org.apache.struts.validator.FieldChecks" | |
147 | - method="validateShort" | |
148 | - methodParams="java.lang.Object, | |
149 | - org.apache.commons.validator.ValidatorAction, | |
150 | - org.apache.commons.validator.Field, | |
151 | - org.apache.struts.action.ActionMessages, | |
152 | - org.apache.commons.validator.Validator, | |
153 | - javax.servlet.http.HttpServletRequest" | |
154 | - depends="" | |
155 | - msg="errors.short" | |
156 | - jsFunctionName="ShortValidations"/> | |
157 | - | |
158 | - | |
159 | - <validator name="integer" | |
160 | - classname="org.apache.struts.validator.FieldChecks" | |
161 | - method="validateInteger" | |
162 | - methodParams="java.lang.Object, | |
163 | - org.apache.commons.validator.ValidatorAction, | |
164 | - org.apache.commons.validator.Field, | |
165 | - org.apache.struts.action.ActionMessages, | |
166 | - org.apache.commons.validator.Validator, | |
167 | - javax.servlet.http.HttpServletRequest" | |
168 | - depends="" | |
169 | - msg="errors.integer" | |
170 | - jsFunctionName="IntegerValidations"/> | |
171 | - | |
172 | - | |
173 | - | |
174 | - <validator name="long" | |
175 | - classname="org.apache.struts.validator.FieldChecks" | |
176 | - method="validateLong" | |
177 | - methodParams="java.lang.Object, | |
178 | - org.apache.commons.validator.ValidatorAction, | |
179 | - org.apache.commons.validator.Field, | |
180 | - org.apache.struts.action.ActionMessages, | |
181 | - org.apache.commons.validator.Validator, | |
182 | - javax.servlet.http.HttpServletRequest" | |
183 | - depends="" | |
184 | - msg="errors.long"/> | |
185 | - | |
186 | - | |
187 | - <validator name="float" | |
188 | - classname="org.apache.struts.validator.FieldChecks" | |
189 | - method="validateFloat" | |
190 | - methodParams="java.lang.Object, | |
191 | - org.apache.commons.validator.ValidatorAction, | |
192 | - org.apache.commons.validator.Field, | |
193 | - org.apache.struts.action.ActionMessages, | |
194 | - org.apache.commons.validator.Validator, | |
195 | - javax.servlet.http.HttpServletRequest" | |
196 | - depends="" | |
197 | - msg="errors.float" | |
198 | - jsFunctionName="FloatValidations"/> | |
199 | - | |
200 | - <validator name="double" | |
201 | - classname="org.apache.struts.validator.FieldChecks" | |
202 | - method="validateDouble" | |
203 | - methodParams="java.lang.Object, | |
204 | - org.apache.commons.validator.ValidatorAction, | |
205 | - org.apache.commons.validator.Field, | |
206 | - org.apache.struts.action.ActionMessages, | |
207 | - org.apache.commons.validator.Validator, | |
208 | - javax.servlet.http.HttpServletRequest" | |
209 | - depends="" | |
210 | - msg="errors.double"/> | |
211 | - | |
212 | - | |
213 | - <validator name="date" | |
214 | - classname="org.apache.struts.validator.FieldChecks" | |
215 | - method="validateDate" | |
216 | - methodParams="java.lang.Object, | |
217 | - org.apache.commons.validator.ValidatorAction, | |
218 | - org.apache.commons.validator.Field, | |
219 | - org.apache.struts.action.ActionMessages, | |
220 | - org.apache.commons.validator.Validator, | |
221 | - javax.servlet.http.HttpServletRequest" | |
222 | - depends="" | |
223 | - msg="errors.date" | |
224 | - jsFunctionName="DateValidations"/> | |
225 | - | |
226 | - | |
227 | - <validator name="intRange" | |
228 | - classname="org.apache.struts.validator.FieldChecks" | |
229 | - method="validateIntRange" | |
230 | - methodParams="java.lang.Object, | |
231 | - org.apache.commons.validator.ValidatorAction, | |
232 | - org.apache.commons.validator.Field, | |
233 | - org.apache.struts.action.ActionMessages, | |
234 | - org.apache.commons.validator.Validator, | |
235 | - javax.servlet.http.HttpServletRequest" | |
236 | - depends="integer" | |
237 | - msg="errors.range"/> | |
238 | - | |
239 | - | |
240 | - <validator name="floatRange" | |
241 | - classname="org.apache.struts.validator.FieldChecks" | |
242 | - method="validateFloatRange" | |
243 | - methodParams="java.lang.Object, | |
244 | - org.apache.commons.validator.ValidatorAction, | |
245 | - org.apache.commons.validator.Field, | |
246 | - org.apache.struts.action.ActionMessages, | |
247 | - org.apache.commons.validator.Validator, | |
248 | - javax.servlet.http.HttpServletRequest" | |
249 | - depends="float" | |
250 | - msg="errors.range"/> | |
251 | - | |
252 | - <validator name="doubleRange" | |
253 | - classname="org.apache.struts.validator.FieldChecks" | |
254 | - method="validateDoubleRange" | |
255 | - methodParams="java.lang.Object, | |
256 | - org.apache.commons.validator.ValidatorAction, | |
257 | - org.apache.commons.validator.Field, | |
258 | - org.apache.struts.action.ActionMessages, | |
259 | - org.apache.commons.validator.Validator, | |
260 | - javax.servlet.http.HttpServletRequest" | |
261 | - depends="double" | |
262 | - msg="errors.range"/> | |
263 | - | |
264 | - <validator name="creditCard" | |
265 | - classname="org.apache.struts.validator.FieldChecks" | |
266 | - method="validateCreditCard" | |
267 | - methodParams="java.lang.Object, | |
268 | - org.apache.commons.validator.ValidatorAction, | |
269 | - org.apache.commons.validator.Field, | |
270 | - org.apache.struts.action.ActionMessages, | |
271 | - org.apache.commons.validator.Validator, | |
272 | - javax.servlet.http.HttpServletRequest" | |
273 | - depends="" | |
274 | - msg="errors.creditcard"/> | |
275 | - | |
276 | - | |
277 | - <validator name="email" | |
278 | - classname="org.apache.struts.validator.FieldChecks" | |
279 | - method="validateEmail" | |
280 | - methodParams="java.lang.Object, | |
281 | - org.apache.commons.validator.ValidatorAction, | |
282 | - org.apache.commons.validator.Field, | |
283 | - org.apache.struts.action.ActionMessages, | |
284 | - org.apache.commons.validator.Validator, | |
285 | - javax.servlet.http.HttpServletRequest" | |
286 | - depends="" | |
287 | - msg="errors.email"/> | |
288 | - | |
289 | - <validator name="url" | |
290 | - classname="org.apache.struts.validator.FieldChecks" | |
291 | - method="validateUrl" | |
292 | - methodParams="java.lang.Object, | |
293 | - org.apache.commons.validator.ValidatorAction, | |
294 | - org.apache.commons.validator.Field, | |
295 | - org.apache.struts.action.ActionMessages, | |
296 | - org.apache.commons.validator.Validator, | |
297 | - javax.servlet.http.HttpServletRequest" | |
298 | - depends="" | |
299 | - msg="errors.url"/> | |
300 | - | |
301 | - <!-- | |
302 | - This simply allows struts to include the validateUtilities into a page, it should | |
303 | - not be used as a validation rule. | |
304 | - --> | |
305 | - <validator name="includeJavaScriptUtilities" | |
306 | - classname="" | |
307 | - method="" | |
308 | - methodParams="" | |
309 | - depends="" | |
310 | - msg="" | |
311 | - jsFunction="org.apache.commons.validator.javascript.validateUtilities"/> | |
312 | - | |
313 | - </global> | |
314 | - | |
315 | -</form-validation> |
@@ -1,56 +0,0 @@ | ||
1 | -<?xml version="1.0"?> | |
2 | -<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_2.dtd"> | |
3 | - | |
4 | -<struts-config> | |
5 | - | |
6 | -<!-- ======================================== Form Bean Definitions --> | |
7 | - | |
8 | - <form-beans> | |
9 | - <!-- ActionFormは動的に生成するため定義不要 --> | |
10 | - </form-beans> | |
11 | - | |
12 | -<!-- ================================= Global Exception Definitions --> | |
13 | - | |
14 | - <global-exceptions> | |
15 | - <!-- AbstractActionにて補足するため定義不要 --> | |
16 | - </global-exceptions> | |
17 | - | |
18 | -<!-- =================================== Global Forward Definitions --> | |
19 | - | |
20 | - <global-forwards> | |
21 | - </global-forwards> | |
22 | - | |
23 | -<!-- =================================== Action Mapping Definitions --> | |
24 | - | |
25 | - <action-mappings> | |
26 | - <!-- ActionFormは動的に生成するため定義不要 --> | |
27 | - <!-- | |
28 | - <action | |
29 | - name="CustomActionForm" | |
30 | - path="/ActionPath" | |
31 | - type="org.phosphoresce.webcore.functionId.functionIdAction" | |
32 | - > | |
33 | - </action> | |
34 | - --> | |
35 | - </action-mappings> | |
36 | - | |
37 | -<!-- ===================================== Controller Configuration --> | |
38 | - | |
39 | - <controller | |
40 | - maxFileSize="1G" | |
41 | - bufferSize="4096K" | |
42 | - tempDir="/WEB-INF/tmp" | |
43 | - processorClass="org.phosphoresce.webcore.struts.action.CustomRequestProcessor" | |
44 | - locale="false" | |
45 | - /> | |
46 | - | |
47 | -<!-- ================================ Message Resources Definitions --> | |
48 | - <message-resources parameter="application"/> | |
49 | - | |
50 | -<!-- ======================================= Plug Ins Configuration --> | |
51 | - | |
52 | - <plug-in className="org.apache.struts.validator.ValidatorPlugIn"> | |
53 | - <set-property property="pathnames" value="/WEB-INF/config/struts/struts-validator-rules.xml"/> | |
54 | - </plug-in> | |
55 | - | |
56 | -</struts-config> |
@@ -0,0 +1,56 @@ | ||
1 | +<?xml version="1.0"?> | |
2 | +<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_2.dtd"> | |
3 | + | |
4 | +<struts-config> | |
5 | + | |
6 | +<!-- ======================================== Form Bean Definitions --> | |
7 | + | |
8 | + <form-beans> | |
9 | + <!-- ActionFormは動的に生成するため定義不要 --> | |
10 | + </form-beans> | |
11 | + | |
12 | +<!-- ================================= Global Exception Definitions --> | |
13 | + | |
14 | + <global-exceptions> | |
15 | + <!-- AbstractActionにて補足するため定義不要 --> | |
16 | + </global-exceptions> | |
17 | + | |
18 | +<!-- =================================== Global Forward Definitions --> | |
19 | + | |
20 | + <global-forwards> | |
21 | + </global-forwards> | |
22 | + | |
23 | +<!-- =================================== Action Mapping Definitions --> | |
24 | + | |
25 | + <action-mappings> | |
26 | + <!-- ActionFormは動的に生成するため定義不要 --> | |
27 | + <!-- | |
28 | + <action | |
29 | + name="CustomActionForm" | |
30 | + path="/ActionPath" | |
31 | + type="org.phosphoresce.webcore.functionId.functionIdAction" | |
32 | + > | |
33 | + </action> | |
34 | + --> | |
35 | + </action-mappings> | |
36 | + | |
37 | +<!-- ===================================== Controller Configuration --> | |
38 | + | |
39 | + <controller | |
40 | + maxFileSize="1G" | |
41 | + bufferSize="4096K" | |
42 | + tempDir="/WEB-INF/tmp" | |
43 | + processorClass="org.phosphoresce.webcore.struts.action.CustomRequestProcessor" | |
44 | + locale="false" | |
45 | + /> | |
46 | + | |
47 | +<!-- ================================ Message Resources Definitions --> | |
48 | + <message-resources parameter="application"/> | |
49 | + | |
50 | +<!-- ======================================= Plug Ins Configuration --> | |
51 | + | |
52 | + <plug-in className="org.apache.struts.validator.ValidatorPlugIn"> | |
53 | + <set-property property="pathnames" value="/WEB-INF/config/struts/struts-validator-rules.xml"/> | |
54 | + </plug-in> | |
55 | + | |
56 | +</struts-config> |
@@ -0,0 +1,315 @@ | ||
1 | +<!DOCTYPE form-validation PUBLIC | |
2 | + "-//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.1.3//EN" | |
3 | + "http://jakarta.apache.org/commons/dtds/validator_1_1_3.dtd"> | |
4 | +<!-- | |
5 | + | |
6 | + This file contains the default Struts Validator pluggable validator | |
7 | + definitions. It should be placed somewhere under /WEB-INF and | |
8 | + referenced in the struts-config.xml under the plug-in element | |
9 | + for the ValidatorPlugIn. | |
10 | + | |
11 | + <plug-in className="org.apache.struts.validator.ValidatorPlugIn"> | |
12 | + <set-property property="pathnames" value="/WEB-INF/validator-rules.xml, | |
13 | + /WEB-INF/validation.xml"/> | |
14 | + </plug-in> | |
15 | + | |
16 | + These are the default error messages associated with | |
17 | + each validator defined in this file. They should be | |
18 | + added to your projects ApplicationResources.properties | |
19 | + file or you can associate new ones by modifying the | |
20 | + pluggable validators msg attributes in this file. | |
21 | + | |
22 | + # Struts Validator Error Messages | |
23 | + errors.required={0} is required. | |
24 | + errors.minlength={0} can not be less than {1} characters. | |
25 | + errors.maxlength={0} can not be greater than {1} characters. | |
26 | + errors.invalid={0} is invalid. | |
27 | + | |
28 | + errors.byte={0} must be a byte. | |
29 | + errors.short={0} must be a short. | |
30 | + errors.integer={0} must be an integer. | |
31 | + errors.long={0} must be a long. | |
32 | + errors.float={0} must be a float. | |
33 | + errors.double={0} must be a double. | |
34 | + | |
35 | + errors.date={0} is not a date. | |
36 | + errors.range={0} is not in the range {1} through {2}. | |
37 | + errors.creditcard={0} is an invalid credit card number. | |
38 | + errors.email={0} is an invalid e-mail address. | |
39 | + errors.url={0} is an invalid url (web address). | |
40 | + | |
41 | + errors.minbytelength={0} can not be less than {1} bytes. | |
42 | + errors.maxbytelength={0} can not be greater than {1} bytes. | |
43 | + | |
44 | + Note: Starting in Struts 1.2.0 the default javascript definitions have | |
45 | + been consolidated to commons-validator. The default can be overridden | |
46 | + by supplying a <javascript> element with a CDATA section, just as | |
47 | + in struts 1.1. | |
48 | + | |
49 | +--> | |
50 | + | |
51 | +<form-validation> | |
52 | + | |
53 | + <global> | |
54 | + | |
55 | + <validator name="required" | |
56 | + classname="org.apache.struts.validator.FieldChecks" | |
57 | + method="validateRequired" | |
58 | + methodParams="java.lang.Object, | |
59 | + org.apache.commons.validator.ValidatorAction, | |
60 | + org.apache.commons.validator.Field, | |
61 | + org.apache.struts.action.ActionMessages, | |
62 | + org.apache.commons.validator.Validator, | |
63 | + javax.servlet.http.HttpServletRequest" | |
64 | + msg="errors.required"/> | |
65 | + | |
66 | + <validator name="requiredif" | |
67 | + classname="org.apache.struts.validator.FieldChecks" | |
68 | + method="validateRequiredIf" | |
69 | + methodParams="java.lang.Object, | |
70 | + org.apache.commons.validator.ValidatorAction, | |
71 | + org.apache.commons.validator.Field, | |
72 | + org.apache.struts.action.ActionMessages, | |
73 | + org.apache.commons.validator.Validator, | |
74 | + javax.servlet.http.HttpServletRequest" | |
75 | + msg="errors.required"/> | |
76 | + | |
77 | + <validator name="validwhen" | |
78 | + msg="errors.required" | |
79 | + classname="org.apache.struts.validator.validwhen.ValidWhen" | |
80 | + method="validateValidWhen" | |
81 | + methodParams="java.lang.Object, | |
82 | + org.apache.commons.validator.ValidatorAction, | |
83 | + org.apache.commons.validator.Field, | |
84 | + org.apache.struts.action.ActionMessages, | |
85 | + org.apache.commons.validator.Validator, | |
86 | + javax.servlet.http.HttpServletRequest"/> | |
87 | + | |
88 | + | |
89 | + <validator name="minlength" | |
90 | + classname="org.apache.struts.validator.FieldChecks" | |
91 | + method="validateMinLength" | |
92 | + methodParams="java.lang.Object, | |
93 | + org.apache.commons.validator.ValidatorAction, | |
94 | + org.apache.commons.validator.Field, | |
95 | + org.apache.struts.action.ActionMessages, | |
96 | + org.apache.commons.validator.Validator, | |
97 | + javax.servlet.http.HttpServletRequest" | |
98 | + depends="" | |
99 | + msg="errors.minlength" | |
100 | + jsFunction="org.apache.commons.validator.javascript.validateMinLength"/> | |
101 | + | |
102 | + | |
103 | + <validator name="maxlength" | |
104 | + classname="org.apache.struts.validator.FieldChecks" | |
105 | + method="validateMaxLength" | |
106 | + methodParams="java.lang.Object, | |
107 | + org.apache.commons.validator.ValidatorAction, | |
108 | + org.apache.commons.validator.Field, | |
109 | + org.apache.struts.action.ActionMessages, | |
110 | + org.apache.commons.validator.Validator, | |
111 | + javax.servlet.http.HttpServletRequest" | |
112 | + depends="" | |
113 | + msg="errors.maxlength" | |
114 | + jsFunction="org.apache.commons.validator.javascript.validateMaxLength"/> | |
115 | + | |
116 | + | |
117 | + | |
118 | + <validator name="mask" | |
119 | + classname="org.apache.struts.validator.FieldChecks" | |
120 | + method="validateMask" | |
121 | + methodParams="java.lang.Object, | |
122 | + org.apache.commons.validator.ValidatorAction, | |
123 | + org.apache.commons.validator.Field, | |
124 | + org.apache.struts.action.ActionMessages, | |
125 | + org.apache.commons.validator.Validator, | |
126 | + javax.servlet.http.HttpServletRequest" | |
127 | + depends="" | |
128 | + msg="errors.invalid"/> | |
129 | + | |
130 | + | |
131 | + <validator name="byte" | |
132 | + classname="org.apache.struts.validator.FieldChecks" | |
133 | + method="validateByte" | |
134 | + methodParams="java.lang.Object, | |
135 | + org.apache.commons.validator.ValidatorAction, | |
136 | + org.apache.commons.validator.Field, | |
137 | + org.apache.struts.action.ActionMessages, | |
138 | + org.apache.commons.validator.Validator, | |
139 | + javax.servlet.http.HttpServletRequest" | |
140 | + depends="" | |
141 | + msg="errors.byte" | |
142 | + jsFunctionName="ByteValidations"/> | |
143 | + | |
144 | + | |
145 | + <validator name="short" | |
146 | + classname="org.apache.struts.validator.FieldChecks" | |
147 | + method="validateShort" | |
148 | + methodParams="java.lang.Object, | |
149 | + org.apache.commons.validator.ValidatorAction, | |
150 | + org.apache.commons.validator.Field, | |
151 | + org.apache.struts.action.ActionMessages, | |
152 | + org.apache.commons.validator.Validator, | |
153 | + javax.servlet.http.HttpServletRequest" | |
154 | + depends="" | |
155 | + msg="errors.short" | |
156 | + jsFunctionName="ShortValidations"/> | |
157 | + | |
158 | + | |
159 | + <validator name="integer" | |
160 | + classname="org.apache.struts.validator.FieldChecks" | |
161 | + method="validateInteger" | |
162 | + methodParams="java.lang.Object, | |
163 | + org.apache.commons.validator.ValidatorAction, | |
164 | + org.apache.commons.validator.Field, | |
165 | + org.apache.struts.action.ActionMessages, | |
166 | + org.apache.commons.validator.Validator, | |
167 | + javax.servlet.http.HttpServletRequest" | |
168 | + depends="" | |
169 | + msg="errors.integer" | |
170 | + jsFunctionName="IntegerValidations"/> | |
171 | + | |
172 | + | |
173 | + | |
174 | + <validator name="long" | |
175 | + classname="org.apache.struts.validator.FieldChecks" | |
176 | + method="validateLong" | |
177 | + methodParams="java.lang.Object, | |
178 | + org.apache.commons.validator.ValidatorAction, | |
179 | + org.apache.commons.validator.Field, | |
180 | + org.apache.struts.action.ActionMessages, | |
181 | + org.apache.commons.validator.Validator, | |
182 | + javax.servlet.http.HttpServletRequest" | |
183 | + depends="" | |
184 | + msg="errors.long"/> | |
185 | + | |
186 | + | |
187 | + <validator name="float" | |
188 | + classname="org.apache.struts.validator.FieldChecks" | |
189 | + method="validateFloat" | |
190 | + methodParams="java.lang.Object, | |
191 | + org.apache.commons.validator.ValidatorAction, | |
192 | + org.apache.commons.validator.Field, | |
193 | + org.apache.struts.action.ActionMessages, | |
194 | + org.apache.commons.validator.Validator, | |
195 | + javax.servlet.http.HttpServletRequest" | |
196 | + depends="" | |
197 | + msg="errors.float" | |
198 | + jsFunctionName="FloatValidations"/> | |
199 | + | |
200 | + <validator name="double" | |
201 | + classname="org.apache.struts.validator.FieldChecks" | |
202 | + method="validateDouble" | |
203 | + methodParams="java.lang.Object, | |
204 | + org.apache.commons.validator.ValidatorAction, | |
205 | + org.apache.commons.validator.Field, | |
206 | + org.apache.struts.action.ActionMessages, | |
207 | + org.apache.commons.validator.Validator, | |
208 | + javax.servlet.http.HttpServletRequest" | |
209 | + depends="" | |
210 | + msg="errors.double"/> | |
211 | + | |
212 | + | |
213 | + <validator name="date" | |
214 | + classname="org.apache.struts.validator.FieldChecks" | |
215 | + method="validateDate" | |
216 | + methodParams="java.lang.Object, | |
217 | + org.apache.commons.validator.ValidatorAction, | |
218 | + org.apache.commons.validator.Field, | |
219 | + org.apache.struts.action.ActionMessages, | |
220 | + org.apache.commons.validator.Validator, | |
221 | + javax.servlet.http.HttpServletRequest" | |
222 | + depends="" | |
223 | + msg="errors.date" | |
224 | + jsFunctionName="DateValidations"/> | |
225 | + | |
226 | + | |
227 | + <validator name="intRange" | |
228 | + classname="org.apache.struts.validator.FieldChecks" | |
229 | + method="validateIntRange" | |
230 | + methodParams="java.lang.Object, | |
231 | + org.apache.commons.validator.ValidatorAction, | |
232 | + org.apache.commons.validator.Field, | |
233 | + org.apache.struts.action.ActionMessages, | |
234 | + org.apache.commons.validator.Validator, | |
235 | + javax.servlet.http.HttpServletRequest" | |
236 | + depends="integer" | |
237 | + msg="errors.range"/> | |
238 | + | |
239 | + | |
240 | + <validator name="floatRange" | |
241 | + classname="org.apache.struts.validator.FieldChecks" | |
242 | + method="validateFloatRange" | |
243 | + methodParams="java.lang.Object, | |
244 | + org.apache.commons.validator.ValidatorAction, | |
245 | + org.apache.commons.validator.Field, | |
246 | + org.apache.struts.action.ActionMessages, | |
247 | + org.apache.commons.validator.Validator, | |
248 | + javax.servlet.http.HttpServletRequest" | |
249 | + depends="float" | |
250 | + msg="errors.range"/> | |
251 | + | |
252 | + <validator name="doubleRange" | |
253 | + classname="org.apache.struts.validator.FieldChecks" | |
254 | + method="validateDoubleRange" | |
255 | + methodParams="java.lang.Object, | |
256 | + org.apache.commons.validator.ValidatorAction, | |
257 | + org.apache.commons.validator.Field, | |
258 | + org.apache.struts.action.ActionMessages, | |
259 | + org.apache.commons.validator.Validator, | |
260 | + javax.servlet.http.HttpServletRequest" | |
261 | + depends="double" | |
262 | + msg="errors.range"/> | |
263 | + | |
264 | + <validator name="creditCard" | |
265 | + classname="org.apache.struts.validator.FieldChecks" | |
266 | + method="validateCreditCard" | |
267 | + methodParams="java.lang.Object, | |
268 | + org.apache.commons.validator.ValidatorAction, | |
269 | + org.apache.commons.validator.Field, | |
270 | + org.apache.struts.action.ActionMessages, | |
271 | + org.apache.commons.validator.Validator, | |
272 | + javax.servlet.http.HttpServletRequest" | |
273 | + depends="" | |
274 | + msg="errors.creditcard"/> | |
275 | + | |
276 | + | |
277 | + <validator name="email" | |
278 | + classname="org.apache.struts.validator.FieldChecks" | |
279 | + method="validateEmail" | |
280 | + methodParams="java.lang.Object, | |
281 | + org.apache.commons.validator.ValidatorAction, | |
282 | + org.apache.commons.validator.Field, | |
283 | + org.apache.struts.action.ActionMessages, | |
284 | + org.apache.commons.validator.Validator, | |
285 | + javax.servlet.http.HttpServletRequest" | |
286 | + depends="" | |
287 | + msg="errors.email"/> | |
288 | + | |
289 | + <validator name="url" | |
290 | + classname="org.apache.struts.validator.FieldChecks" | |
291 | + method="validateUrl" | |
292 | + methodParams="java.lang.Object, | |
293 | + org.apache.commons.validator.ValidatorAction, | |
294 | + org.apache.commons.validator.Field, | |
295 | + org.apache.struts.action.ActionMessages, | |
296 | + org.apache.commons.validator.Validator, | |
297 | + javax.servlet.http.HttpServletRequest" | |
298 | + depends="" | |
299 | + msg="errors.url"/> | |
300 | + | |
301 | + <!-- | |
302 | + This simply allows struts to include the validateUtilities into a page, it should | |
303 | + not be used as a validation rule. | |
304 | + --> | |
305 | + <validator name="includeJavaScriptUtilities" | |
306 | + classname="" | |
307 | + method="" | |
308 | + methodParams="" | |
309 | + depends="" | |
310 | + msg="" | |
311 | + jsFunction="org.apache.commons.validator.javascript.validateUtilities"/> | |
312 | + | |
313 | + </global> | |
314 | + | |
315 | +</form-validation> |