











Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
An in-depth explanation of how to use actionform with validator in the apache struts framework. It covers the differences between standard and dynamic actionforms, and the use cases for xvalidatoractionform and xvalidatorform. The document also includes sample code and configuration files for reference.
Typology: Slides
1 / 19
This page cannot be seen from the preview
Don't miss anything!












Choices You have
Validation Framework: struts-example Sample code
**
**
ApplicationResources.Properties
errors.required={ 0 } is required. errors.minlength={ 0 } cannot be less than { 1 } characters. errors.maxlength={ 0 } cannot be greater than { 2 } characters. errors.invalid={ 0 } is invalid. errors.byte={ 0 } must be an byte. errors.short={ 0 } must be an short. errors.integer={ 0 } must be an integer. errors.long={ 0 } must be an long. errors.float={ 0 } must be an float. errors.double={ 0 } must be an double. errors.date={ 0 } is not a date. errors.range={ 0 } is not in the range { 1 } through { 2 }. errors.creditcard={ 0 } is not a valid credit card number. errors.email={ 0 } is an invalid e-mail address.
LogonForm Validation: “required”
LogonForm Validation: “maxlength”
test
(((city != null) and (state != null)) or (this != null))
test (this == password)