it is a long procedure u have to follow 1.create a class 2.define static method boolean true and false value 3.after that u have to copy five parameters 4.import org.apache.commans.validators.utils.validatorsutils package u have to import 5.after that for ActionMessage u can import some other package org.apache.struts.action.resourcesvalidateaction package u have to import 6.if error exist return false othere wise true 7.configure this userdefined validation in validator-reles.xml <validator classname=" " method params=" " paste the 5 method params msg="here u have to give resource bunlde key" method name=" "/>