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 > -----Original Message----- > From: arin_12 [mailto:arin...@lycos.com] > Sent: Wednesday, May 18, 2011 1:13 PM > To: user@struts.apache.org > Subject: Re: Separate Java Bean Class for Getter/Setter method. > > Now the URL looks like, No extra amp; > http://localhost:8080/Samvidh_CIS/doEditAllergy.action?alId=2& > alDescription=algy_full_desc&alName=algy_short_desc > > Now the New problem is that, I am not able to retrieve the > value of the key though I am able to see the key. > > Code in Action Class- > > Map<String, Object> map = > ActionContext.getContext().getParameters(); > Iterator entries = map.entrySet().iterator(); > while (entries.hasNext()) { > Map.Entry entry = (Map.Entry) entries.next(); > String key = entry.getKey().toString(); > String value = entry.getValue().toString(); > System.out.println("Key = " + key + ", > Value = " + value); > } > > Console Output. > > Key = alDescription, Value = [Ljava.lang.String;@b90a6e Key = > alId, Value = [Ljava.lang.String;@b4b0a4 Key = alName, Value > = [Ljava.lang.String;@5bcd91 > > Help Please... > > -- > View this message in context: > 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. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org