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 CD5016C29 for ; Wed, 18 May 2011 18:53:30 +0000 (UTC) Received: (qmail 3427 invoked by uid 500); 18 May 2011 18:53:28 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 3402 invoked by uid 500); 18 May 2011 18:53:28 -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 3394 invoked by uid 99); 18 May 2011 18:53:28 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 May 2011 18:53:28 +0000 X-ASF-Spam-Status: No, hits=1.3 required=5.0 tests=SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [65.42.26.133] (HELO Exfilt6admin.aoins.com) (65.42.26.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 May 2011 18:53:22 +0000 X-WSS-ID: 0LLEN48-02-7QK-02 X-M-MSG: Received: from exfilt3.aoins.com (exfilt3.aoins.com [10.244.15.5]) by Exfilt6admin.aoins.com (Postfix) with ESMTP id 2E030FC5FD4 for ; Wed, 18 May 2011 14:52:56 -0400 (EDT) Received: from [10.7.3.103] by exfilt3.aoins.com with SMTP (Auto-Owners Insurance SMTP Relay); Wed, 18 May 2011 14:53:19 -0400 X-Server-Uuid: 11EC2F1F-EC2A-4EC7-A876-FD596580EBC3 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Subject: RE: Separate Java Bean Class for Getter/Setter method. Date: Wed, 18 May 2011 14:52:52 -0400 Message-ID: In-Reply-To: <1305738796042-4407093.post@n5.nabble.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Separate Java Bean Class for Getter/Setter method. Thread-Index: AcwVi9wR/bBKLdkvRlSfj35nfJbfoQAAKA1Q References: <1305051966440-4385274.post@n5.nabble.com> <1305108378969-4386991.post@n5.nabble.com> <1305130526444-4387786.post@n5.nabble.com> <1305215940169-4390648.post@n5.nabble.com> <1305563467594-4400903.post@n5.nabble.com> <1305738796042-4407093.post@n5.nabble.com> From: "Biesbrock, Kevin" To: "Struts Users Mailing List" X-WSS-ID: 61CACA152Z82854365-01-01 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org You have to override the Object's toString method. Why is your map holding a Object? Should be one of your classes. Beez r 5347=20 =20 > -----Original Message----- > From: arin_12 [mailto:arin_12@lycos.com]=20 > Sent: Wednesday, May 18, 2011 1:13 PM > To: user@struts.apache.org > Subject: Re: Separate Java Bean Class for Getter/Setter method. >=20 > Now the URL looks like, No extra amp; > http://localhost:8080/Samvidh_CIS/doEditAllergy.action?alId=3D2& > alDescription=3Dalgy_full_desc&alName=3Dalgy_short_desc >=20 > Now the New problem is that, I am not able to retrieve the=20 > value of the key though I am able to see the key. >=20 > Code in Action Class- >=20 > Map<String, Object> map =3D > ActionContext.getContext().getParameters();=09 > Iterator entries =3D map.entrySet().iterator(); > while (entries.hasNext()) { > Map.Entry entry =3D (Map.Entry) entries.next(); > String key =3D entry.getKey().toString(); > String value =3D entry.getValue().toString(); > System.out.println("Key =3D " + key + ",=20 > Value =3D " + value); > } >=20 > Console Output. >=20 > Key =3D alDescription, Value =3D [Ljava.lang.String;@b90a6e Key =3D=20 > alId, Value =3D [Ljava.lang.String;@b4b0a4 Key =3D alName, Value=20 > =3D [Ljava.lang.String;@5bcd91 >=20 > Help Please... >=20 > -- > View this message in context:=20 > http://struts.1045723.n5.nabble.com/Separate-Java-Bean-Class-f > or-Getter-Setter-method-tp4385274p4407093.html > Sent from the Struts - User mailing list archive at Nabble.com. >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org > For additional commands, e-mail: user-help@struts.apache.org >=20 >=20 >=20 --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org