Return-Path: X-Original-To: apmail-struts-user-archive@www.apache.org Delivered-To: apmail-struts-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 004E01035F for ; Fri, 13 Dec 2013 13:09:21 +0000 (UTC) Received: (qmail 46652 invoked by uid 500); 13 Dec 2013 13:09:17 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 46598 invoked by uid 500); 13 Dec 2013 13:09:11 -0000 Mailing-List: contact user-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list user@struts.apache.org Received: (qmail 46590 invoked by uid 99); 13 Dec 2013 13:09:10 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Dec 2013 13:09:10 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of vibhutipithwa@gmail.com designates 74.125.82.174 as permitted sender) Received: from [74.125.82.174] (HELO mail-we0-f174.google.com) (74.125.82.174) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Dec 2013 13:09:04 +0000 Received: by mail-we0-f174.google.com with SMTP id q58so1814755wes.5 for ; Fri, 13 Dec 2013 05:08:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=BNMIVoVxPO/YwQzW0iE/5iW8qCBjfRmV2bDMhbW9e3c=; b=T7PHO2mXJz4McF6PfGDolElKm75HNtD43T9R6/iwZESb7bRdCfE0sAHH1MphWBtLWs CE7JGpLuFisN4K0TYsfHPSbvE0KRJPg2/ZKW9ww6yvgE4Ii6lwswv9FQGQE7xpdG6QBC /dtzi6UcBXVXRDGLCWi7ul7x645guEFKdv2sWAHh8KkQH4RLF/swil0XXdwd8yAz6myT Db03bcpuB7OD7+yaxRB05YIiy8XvcZP1U0iB00+c5HSGki22c/6ql6I/cwAjIc0crVIE 5ocnMJtLAS6eXyjfa6HDGc4XIh2NdMyuAIgeHPPuqT6p/+KiqtEfIvKJro9XQJpRrA6a bVlQ== MIME-Version: 1.0 X-Received: by 10.180.90.37 with SMTP id bt5mr2832320wib.43.1386940123664; Fri, 13 Dec 2013 05:08:43 -0800 (PST) Received: by 10.180.83.36 with HTTP; Fri, 13 Dec 2013 05:08:43 -0800 (PST) Date: Fri, 13 Dec 2013 18:38:43 +0530 Message-ID: Subject: Struts Validation From: Vibhuti Pithwa To: user@struts.apache.org Content-Type: multipart/alternative; boundary=f46d043d67796555c404ed6a296a X-Virus-Checked: Checked by ClamAV on apache.org --f46d043d67796555c404ed6a296a Content-Type: text/plain; charset=ISO-8859-1 Hello, I had successfully written a conditional visitor validator for a List in a validation.xml for a list of Object say Employee. Then I wrote a validation.xml of the type Employee-validation.xml where i wrote the validation to be done for say First Name , Last Name. Now the validations in Employee-validation.xml are executed as many times as there are objects the list List . Now i have a Map of objects and i tried to write similar thing for it but it does not work. Has anyone tried doing such for a Map and can explain me an approach to do it.? This is appearing way out of my reach as we need optimised code that can iterate over the map and do validation instead of writing hard coded validation. Need some help. Thanks, Vibhuti Pithwa --f46d043d67796555c404ed6a296a--