• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Struts-validation

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello ,
I am a bit confused about the validation framework specifically about the differences between version 1.0 and 1.1 of Struts.
Could someone please explain ?
Your help is appreciated
Regards,
-satish
 
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The main difference between 1.0 and 1.1 in terms of validation is the addition of the Validator framework to 1.1.
In 1.0, validation was really only included via the ActionForm's validate() method. Additional validation would have to take place with manual calls in the Actions, or other back-end business classes.
In 1.1, with the Validator framework included in the package. It essentially uses a combination of configuration xml files (validation-rules.xml and validation.xml) to perform validation across common attributes and data types. Attempting to explain all of the Validator framework would be next to impossible in this context, but check out O'Reilly's Programming Jakarta Struts as a reference.
reply
    Bookmark Topic Watch Topic
  • New Topic