?key2=val2&array=1&key=val&array=2&array=3

On May 21, 2014, at 9:56 AM, John Pollard <[email protected]> wrote:

> My workaround to put them back in order, using a TreeMap to sort on the index 
> position within the URI.
> 
>        NSArray<String> formKeys = request().formValueKeys();
>        String uriStr = request().uri();
>        TreeMap<Integer, String> orderedKeysMap = new TreeMap<Integer, 
> String>();
>        for(String nextKey : formKeys)
>        {
>               orderedKeysMap.put(uriStr.indexOf(nextKey), nextKey);
>        }   
> 
> On 21 May 2014, at 17:26, John Pollard <[email protected]> wrote:
> 
>> Hi List,
>> 
>> I note that WORequest.formValues() jumbles up the order of the values from a 
>> url. Is there a simple way to get them in order, or do I need to parse them 
>> out myself? I understand that normally the order shouldn't be important, but 
>> I have what I feel is a reasonable purpose for needing to know the order.
>> 
>> Thanks
>> John
> 
> 
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list      ([email protected])
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/rgurley%40smarthealth.com
> 
> This email sent to [email protected]


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to