| < Day Day Up > |
|
validate attribute of action tag, 57
validate( ) method
of ActionForm class, 27–28, 55, 58–59
of Form Bean, 91–92
of SearchForm class, 67
validateSsNum( ) method, 104–105
Validation definitions, 107–108
Validation error messages, 69, 114
Validation method, creating, 103–105
Validation method arguments, 105
Validation routines in validator-rules.xml, 101
Validation rule, adding to validator-rules.xml, 105–107
Validations
defining, 99–100
internationalizing, 108–110
validation.xml file, 92, 97–98, 102, 105, 107–109, 390
action path, 99
configuring, 99–100
creating, 112
form-validation element, 100
Validator configuration file tags, 391–405
Validator configuration files, 92, 389–406
editing with Struts Console, 405
list of tags in, 392
module-specific, 167–168
Validator elements, 107
Validator framework, 10, 91–115
ActionForm subclasses, 91–92, 96
adding to Mini HR application, 110–115
adding to struts-config.xml file, 112–113
adding validation definitions, 107–108
adding a validation rule, 105–107
ApplicationResources.properties, 100–102
as a third-party add-on to Struts, 91
client-side validations, 102–103
creating Form Beans for use with, 96–99
creating a validation method, 103–105
custom validations, 103–108
enabling, 92–93, 391
how it works, 92
internationalizing validations, 108–110
overview of, 92
plug-in tag, 92–93
preconfigured validations, 91, 95–96
two XML configuration files for, 389–390
using, 92–103
using with modules, 167–168
Validator 1.0 configuration file, 467
Validator 1.1 configuration file, 467
validator tag, 95
attributes, 402–403
DTD definition, 402
example usage, 403
msg attribute, 100, 108
in Validator configuration file, 402–403
ValidatorActionForm class, 98
ValidatorForm class, 97, 111
validator-rules.xml file, 92, 100–102, 105, 108–109, 112, 114
configuring, 93–96
preconfigured, 95
validation routines in, 101
var tag (Validator configuration file), 403–404
DTD definition, 403
example usage, 404
Variables and scope in JSPs, 195–196, 255–256, 283–284
var-name tag (Validator configuration file), 404
DTD definition, 404
example usage, 404
var-value tag (Validator configuration file), 404–405
DTD definition, 405
example usage, 405
Velocity (Jakarta View technology), 70
Verification steps (in Canoo WebTest), 455
verify– assertions (Struts-specific), 449–450
verifyInputForward( ) method, 444
verifytext task, 458
verifyxpath task, 457
View class, 24
View and Controller layers, transferring data between, 54
View layer (MVC), 53–70
components of, 7
creating using HTML/JSP, 53–70
Form Beans, 54–61
of Mini HR application, 64–69
Struts and, 53–64
View and Model layers, keeping separate, 53
View technologies, 69–70
viewEmployee.page definition, 129
Views (multiple application interfaces), 53
development of, 117
in MVC, 6
VO (Value Object), 32, 51
| < Day Day Up > |
|