You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Levan Dvalishvili <dv...@verticali.com> on 2006/11/03 17:11:21 UTC
RE: request.getParameterMap
Thats Objects default toString() method that does that .
try casting .....out((String)value);
Levan Dvalishvili
Support Lead US
Verticali,Inc
(646) 736 - 6075
-----Original Message-----
From: temp temp [mailto:miroconnect@yahoo.com]
Sent: Friday, November 03, 2006 11:04 AM
To: user@struts.apache.org
Subject: request.getParameterMap
I want all the parameters in ServletRequest object for this I am using
the method request.getParameterMap(). It returns java.util.Map which
contains request parameter name and its value.When I print out the Map I
can read the key but I cannot read the value .
Here is the print of the Map
06/11/03 10:58:57 ************ request params key score1 , value
[Ljava.lang.String;@13f348b
06/11/03 10:58:57 ************ request params key progname ,
value [Ljava.lang.String;@92997e
06/11/03 10:58:57 ************ request params key submit , value
[Ljava.lang.String;@9b601d
06/11/03 10:58:57 ************ request params key numberPerPage ,
value [Ljava.lang.String;@c3362f
06/11/03 10:58:57 ************ request params key appNum , value
[Ljava.lang.String;@1a5770
06/11/03 10:58:57 ************ request params key sortBy , value
[Ljava.lang.String;@1628b8d
06/11/03 10:58:57 ************ request params key amount2 , value
[Ljava.lang.String;@b80f1c
06/11/03 10:58:57 ************ request params key hasAward ,
value [Ljava.lang.String;@1e80f3a
06/11/03 10:58:57 ************ request params key score2 , value
[Ljava.lang.String;@3fc47c
06/11/03 10:58:57 ************ request params key orgState ,
value [Ljava.lang.String;@7cb44d
06/11/03 10:58:57 ************ request params key amount1 , value
[Ljava.lang.String;@1214626
06/11/03 10:58:57 ************ request params key orgName , value
[Ljava.lang.String;@1849daf
How can I translate value [Ljava.lang.String;@1849daf to readable
String?
Thanks & Regards
Miro
---------------------------------
We have the perfect Group for you. Check out the handy changes to Yahoo!
Groups.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org