This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
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?
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".
Hope that helps.
IBM 286, SCJP, SCWCD, EIEIO
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com