• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Can use validator classes within action's validation methods?

 
Haina Minawa
Ranch Hand
Posts: 119
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I am wondering whether it is possible or not to instantiate an instance of a validator class (such as EmailValidator class) and using its methods to validate the input? For example:



I have tried the approach above without success.

Any help?

Thanks.
 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Haina Minawa wrote:
I have tried the approach above without success.

Yes, you can use. what is the error message you are getting?
 
Haina Minawa
Ranch Hand
Posts: 119
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I got the following exception (full stack trace):

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic