• 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
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

struts 2: how to validate text fields in a collection

 
Ranch Hand
Posts: 63
Oracle Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
greetings Fellow Ranchers,

i have a jsp in which i show a list of PersonVO in the iterate tag. the fields being : firstname,lastname,age. My Action class is PersonAction.java


how do i put the validation in PersonAction-validation.xml?and what will be the validation to iterate through the collection?
required validations being:
  • fname,lname should not be blank.
  • age should be numeric and non-zero


  • Thanks and Regards,
    VINNY M
     
    Ranch Hand
    Posts: 485
    Eclipse IDE Firefox Browser Linux
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    Explore fieldError in Struts 2
     
    reply
      Bookmark Topic Watch Topic
    • New Topic