my dog learned polymorphism*
The moose likes Struts and the fly likes Form bean validator Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Form bean validator" Watch "Form bean validator" New topic
Author

Form bean validator

Sushil Jamsandekar
Greenhorn

Joined: Aug 11, 2008
Posts: 14
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.


SCJP 1.4
Preparing for SCWCD
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

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.
 
 
subject: Form bean validator