java - Struts2 Action validator, delegates validation to the model with the 'type="visitor" ' attribute -


I am facing a problem in Stratus 2 verification.

My Action Class Notification Action

My Model Class UserNotificationsForm .

I received notifications - verification. Xml

  & lt; Validators & gt; & Lt; Field name = "user notification form" & gt; & Lt; Field-recognizer type = "visitor" & gt; & Lt; Param name = "appendfirfix" & gt; False & lt; / Param & gt; & Lt; Message /> & Lt; / Region-verifier & gt; & Lt; / Region & gt;  

and UserNotificationsForm-notifications_update-validation.xml

  & lt; Field name = "userNotificationForm.email" & gt; & Lt; Field-recognizer type = "required string" & gt; & Lt; Message key = "register.validation.email" /> & Lt; / Region-verifier & gt; & Lt; Area-recognizer type = "email-custom" & gt; & Lt; Message key = "register.validation.email.format" /> & Lt; / Region-verifier & gt; & Lt; / Region & gt;  

When I am inserting the wrong email it is not validly validating


Comments