• 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: Bug in WOContext.directActionURLForActionNamed() when using query dictionary
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bug in WOContext.directActionURLForActionNamed() when using query dictionary


  • Subject: Re: Bug in WOContext.directActionURLForActionNamed() when using query dictionary
  • From: Nathan Hadfield <email@hidden>
  • Date: Wed, 26 Apr 2006 20:04:51 -0600
  • Resent-date: Tue, 2 May 2006 15:32:52 -0600
  • Resent-from: Nathan Hadfield <email@hidden>
  • Resent-message-id: <email@hidden>
  • Resent-to: webobjects-dev Apple <email@hidden>

(I wrote this Friday but just realized I failed to include the listserv in my reply.)

Thanks so much for the quick replies, and sorry to bring up an old debate. My bad for not searching the archives well enough.

In my case I was generating the URL for use in a plain-text e-mail, so clicking on the URL from a mail client resulted in the browser including "amp;" in the request. I'll probably just do the replaceAll () fix as well.

Nathan

On Apr 26, 2006, at 7:21 PM, David LeBer wrote:


On 26-Apr-06, at 8:32 PM, Mike Schrag wrote:

David LeBer, Nov 15 2005 says a quick Mail search ... This teeters on a religious debate I believe :) It comes down to how you are using the result of that method. If you use it inside of an <a href = ".."> then it's SUPPOSED to be escaped (to be XHTML compliant). However, apparently it fails if you try to use it with a WORedirect. I have no idea what happens if you try to use that inside of Javascript as a location = '..', and obviously if processing it in some other way internally, it will probably throw your code for a loop. So basically, if you were expecting it the old way, it's broken, but if you thought it was broken before, it's fixed :)

Yeah, what he said :-)

I blogged about it here: <http://david.codeferous.com/?p=191>

I ended up doing this:

	url = url.replaceAll("&amp;", "&");

before handing the url off the the WORedirect. Ugly yes, but it works.

--
;david

--
David LeBer
Codeferous Software
'co-defer-ous' adj. producing or containing code
site:   http://www.codeferous.com
blog: http://david.codeferous.com




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


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
  • Prev by Date: WebSphere connection pool and deadlock - HELP!
  • Next by Date: Re: To WWDC, or not to WWDC...
  • Previous by thread: Re: WebSphere connection pool and deadlock - HELP!
  • Next by thread: Want to iterate over items in EditingContext for validation before save
  • Index(es):
    • Date
    • Thread