I am implementing the ParamterAware interface to get to the parameter.
The interface has a setParameters(Map parameters) that I'm supposed to
be able to use to access the GET data encoded in the URL.
From the JavaDoc API:
"Note that all parameter values for a given name will be returned, so
the type of the objects in the map is java.lang.String[]."
When I try reading data from the Map and converting to a String, I get
a casting error:
java.lang.ClassCastException: [Ljava.lang.String; cannot be cast to
java.lang.String
I did this:
public void setParameters (Map map)
{
Object m = map.get("criteria");
message = m.toString();
}
then displayed the message. I get "[Ljava.lang.String;@e35bb7"
Any clues? Bug?
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]