• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Form bean validator

 
Sushil Jamsandekar
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am new to struts validator. I am using following form to hold the data that user enters.


tableData holds list of objects of another bean MyTableBean which has following attributes

I want to validate above values through validation.xml file. I have written following code in xml file

Above code is not validating the input, even i am not getting proper JavaScript on the front end.
Please let me know if i am doing anything wrong.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please UseCodeTags; without them code is unreadable.

Are you using the <html:javascript> tag to emit the JavaScript? That said, I don't recall if the "mask" validator is available in JavaScript.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic