I have almost finished making this code work. It's supposed to print out the name/value pairs of a query string (eg.from a form URL query string). I've got it to print out the 'name' part of the pair array, but can't seem to print out the 'value' part.
Here's the code:
I changed the print method, in util class, to take a String name as well, but it didn't compile. Any suggestions on how to print the last half of the array?
Thanks so much... Almost finished
Joined: Nov 20, 2004
I thought it would be able to access the form class from the print method, but compiling says it can't find symbol variable form. Maybe I should be invoking the method getValue differently?
Joined: Dec 17, 2002
I'm not completely sure what you're trying to accomlish. It seems that this code could be simplified. But take a look at this and let me know if this helps:
I made the getValues() method just like the getNames() method. I also changed the Util.print() method to accept two arrays of Strings. I'm puzzled as to why the Util.print method uses arrays called array and name. I would have expected something like "name" and "value".