|
The String class has many useful methods for this sort of thing. I don't want to do your homework for you, but here are some pointers:
URL parameters are easy to find in a URL, e.g. prefix.yoururl.whatever<b>?param1=value1¶m2=va lue2¶m3=value3</b>
Try
1. Converting the URL to a string.
2. Clipping the string at the question-mark, to retain just the parameter list.
3. Using the indexOf method (for example, you could also use regular expressions to great effect here) to split the remainder into parameters and values.
Good Luck,
Joe
|