ValidationContextUrlMapping[] mappings = new ValidationContextUrlMapping[2];
mappings[0] = new ValidationContextUrlMapping("/user/*", new String[] { "ctx1", "ctx2" });
mappings[1] = new ValidationContextUrlMapping("/admin/*", new String[] { "ctx3" });
interceptor = new ValidationContextHandlerInterceptor();
interceptor.setValidationContextUrlMappings(mappings);
}