Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 135DF200C3C for ; Mon, 3 Apr 2017 12:44:49 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 11A16160B8F; Mon, 3 Apr 2017 10:44:49 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 7E6CC160B76 for ; Mon, 3 Apr 2017 12:44:48 +0200 (CEST) Received: (qmail 56880 invoked by uid 500); 3 Apr 2017 10:44:47 -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 56869 invoked by uid 99); 3 Apr 2017 10:44:47 -0000 Received: from mail-relay.apache.org (HELO mail-relay.apache.org) (140.211.11.15) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Apr 2017 10:44:47 +0000 Received: from mail-vk0-f51.google.com (mail-vk0-f51.google.com [209.85.213.51]) by mail-relay.apache.org (ASF Mail Server at mail-relay.apache.org) with ESMTPSA id 164C81A00E8 for ; Mon, 3 Apr 2017 10:44:47 +0000 (UTC) Received: by mail-vk0-f51.google.com with SMTP id r69so133068739vke.2 for ; Mon, 03 Apr 2017 03:44:46 -0700 (PDT) X-Gm-Message-State: AFeK/H0PfmOuND9YZI7k/NzZ4LxDTNHFK+XU3Z7OUF5Zjq/eZuocASypSFyNlomjaWlh/XsyzRzD2vjbzREJkQ== X-Received: by 10.159.56.154 with SMTP id t26mr8589053uaf.86.1491216286157; Mon, 03 Apr 2017 03:44:46 -0700 (PDT) MIME-Version: 1.0 Received: by 10.31.107.193 with HTTP; Mon, 3 Apr 2017 03:44:25 -0700 (PDT) In-Reply-To: References: <3a92a99f-235e-4c14-a77d-7c877343d775@email.android.com> From: Lukasz Lenart Date: Mon, 3 Apr 2017 12:44:25 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Issue with Struts2 s:select tag with Object inside a Model Object To: Struts Users Mailing List Content-Type: multipart/alternative; boundary=f403045f286a0516b1054c40d9d1 archived-at: Mon, 03 Apr 2017 10:44:49 -0000 --f403045f286a0516b1054c40d9d1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 2017-04-02 22:58 GMT+02:00 Kiran Kongala : > Hi Lulasz, > > > *I am not comparing the same objects.I am trying to compare the String to > a constant String.Still do I need to override the equals and hashCode > methods.* > > *I added a tag in the jsp and I see the values.But the value > doesnt set the value back to the s:select drop down list.* > If you are comparing Strings why do use listKey and listValue? These attributes are used to fetch an object's property and compare it with value pointed by the "name" attribute. Regards --=20 =C5=81ukasz + 48 606 323 122 http://www.lenart.org.pl/ --f403045f286a0516b1054c40d9d1--