--- Begin Message ---
Also it should be myMap.get("criteria")[0];
 
 
 
Animesh

________________________________

From: [EMAIL PROTECTED] on behalf of yitzle
Sent: Tue 6/5/2007 1:57 AM
To: Struts Users Mailing List
Subject: Re: [S2] Accessing URL encoded GET data (bug found?)



As per your advice, I tried explicitly casting the map to a Map<String, String>

        public void setParameters (Map map)
        {
                Map<String,String> myMap = map;
                Object m = myMap.get("criteria");
                message = m.toString();
        }

No difference. message gets set to [Ljava.lang.String;@9a8a68
Casting myMap.get("criteria") to a String gives the same error
message, ie java.lang.ClassCastException: [Ljava.lang.String; cannot
be cast to java.lang.String

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



<<winmail.dat>>


--- End Message ---
The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient should 
check this email and any attachments for the presence of viruses. The company 
accepts no liability for any damage caused by any virus transmitted by this 
email.
 
www.wipro.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to