• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: formValueForKey
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: formValueForKey


  • Subject: Re: formValueForKey
  • From: Johann Werner <email@hidden>
  • Date: Thu, 01 Sep 2011 18:59:22 +0200

Hi Gino,

you have to url-encode the plus sign in your URL.

jw


Am 01.09.2011 um 18:20 schrieb Gino Pacitti:

> Hi All
>
> I have a query string coming in to a direct action:
>
> /someapp.woa/wa/someaction?crypt=3CC0hsl3LP0e4ruLa+icqdcIKDe9nNhNU9Iw6vcBz1t02W2ONiG9I5DvBiiVFg97PiOODXynoFldtkJETPjPeQyRU21lX8eXNdtYVbSYHs4=
>
> When it arrives I get this:
>
> String encryptedwithKeys = (String)this.request().formValueForKey("crypt");
> System.out.println("encryptedwithKeys " + new String(encryptedwithKeys));
>
>
> 3CC0hsl3LP0e4ruLa icqdcIKDe9nNhNU9Iw6vcBz1t02W2ONiG9I5DvBiiVFg97PiOODXynoFldtkJETPjPeQyRU21lX8eXNdtYVbSYHs4=
>
> The '+' symbol here:
>
> 3CC0hsl3LP0e4ruLa+icqdcIKDe9nNhNU9...
>
> seems to be replaced with a space:
>
> 3CC0hsl3LP0e4ruLa icqdcIKDe9nNhNU9...
>
> Any ideas why formValueForKey does this?
>
>
> Gino
>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list      (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
>

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >formValueForKey (From: Gino Pacitti <email@hidden>)

  • Prev by Date: formValueForKey
  • Next by Date: Re: Passing parameters to Jasper Reports
  • Previous by thread: formValueForKey
  • Next by thread: Re: formValueForKey
  • Index(es):
    • Date
    • Thread