I am implemnting ParameterAware to get my request parameters:
http://cwiki.apache.org/WW/how-can-we-access-request-parameters-passed-into-an-action.html

I have a parameter called customerId.

I tried this

Integer.parseInt(parameters.get("customerId"));

Which did not work because .get returns an Object.

Calling toString on the object returns the type and memory address so
I decided to cast it to a String:

Integer.parseInt((String)parameters.get("customerId"));

Now I get a runtime error on that line of code that says:

[Ljava.lang.String; cannot be cast to java.lang.String

I checked the type of object int he Map and it is a String.  But it
seems impossible to access the value in that object since toString
does not return the value and casting it to a String does not work
because it is already a String.  Am I missing something obvious here?
I can't think of a way to get the value of customerId.

Thank you,

Rich

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

Reply via email to