That looks like just what he did. To get the individual elements (the
parameter values) he'd have to iterate through the array:
for( i = 0; i < arrayOfStrings.length(); i++) {
System.out.println( "value = " + arrayOfStrings[ i] + "\n");
}
And let's not forget that a string literal is a String!! ;-)
Mark
-----Original Message-----
From: Doug Turner
Sent: Wednesday, December 19, 2001 2:18 PM
I dunno, could be you are going wrong BY NOT POSTING THE CODE that produced
the output...8-)
Remember, this method returns an array of Strings; if you have something
like:
String[] arrayOfStrings = request.getParameterValues("foo");
System.out.println(arrayOfStrings);
You will not see the individual values, maybe something like what you show
will get printed (info about the array).
At 01:07 PM 12/19/01 -0600, Ketharinath Kamalanathan wrote:
>I tried that and got this ;-) Where am I wrong??
>
>[Ljava.lang.String;@6e22f7 [Ljava.lang.String;@39ab89
>[Ljava.lang.String;@2cb49d
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html