I am trying to write a method that validates XML against XSD. In my case, I have multiple XSD files. When I use tools like IntelliJ IDEA to generate a sample XML from my main XSD everything looks fine: the sample XML is generated and looks as I expect. So I think that my XSD files are okay. This is
Tag: xml-validation
How to pass the object property as param to Struts custom validator
This is the custom validator, has getters/setters for countryCode How to pass the country code back to the custom validator. This is my ActionClass-validation.xml Address object has zip and countryCode. I want to validate the zip based on the country. When I debug the above code, countryCode has the value ${address.country}. How can I get the country property value? Answer