2014-12-26 15:19 GMT+01:00 Lukasz Lenart <lukaszlen...@apache.org>:
> 2014-12-26 6:56 GMT+01:00 Yaragalla Muralidhar <yaragallamur...@gmail.com>:
>> Hi Sreekanth,
>>       I think i cannot send attachements to the mailing list so i have
>> uploaded the project to my drive and sharing the link
>>
>> https://drive.google.com/file/d/0B59LVhKQaKQYamZqbnc4NGtOQm8/view?usp=sharing

Can you start that app? I've noticed <include
file="mailreader-default.xml"/> in sample-reg.xml but such file
doesn't exist which means Struts will blow up with some error in the
logs.

Another thing, even empty text field means something - an empty string
- if you read the docs [1] it will clearly says:
"RequiredFieldValidator checks if the specified field is not null."
where empty string != null

I think you want to specify min length of the String so you should use
stringlength [2] instead. One more remark: you don't have to put
validators.xml - it's only needed when you define your own validators.
And I kindly suggest, please re-read the docs about how to setup
validation and what each of the validators do [3].

[1] http://struts.apache.org/docs/required-validator.html
[2] http://struts.apache.org/docs/stringlength-validator.html
[3] http://struts.apache.org/docs/validation.html


Regards
-- 
Ɓukasz
+ 48 606 323 122 http://www.lenart.org.pl/

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to