Struts2 Validation -


In Struts2, can we do both verification xml (ActionClass-method-validation.xml) and the method implemented in the Action Class Can validate.

I was asking that this validation xml is not implemented in my situation.

Hope you have the proper rule file verb name- validation.xml (note-action name is case-sensitive) And placed in the same package as the Action Class.

In addition, if you do not have the default interceptor configured, please add the legalization interceptor to the Straits.xmm in that particular action tag.

  & lt; Action Name = "Welcome" class = "Com. BAC Web. Welcome Action" & gt; & Lt; Interceptor-Rif name = "verification" /> & Lt; Name of the result = "success" & gt; Hello Jasp & lt; / Results & gt; & Lt; / Action & gt;  

For more information about the Validation framework and see


Comments