Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Generate DirectAction URL with instance number when there is nosession



Hi Francis,

just try the following code:

NSMutableDictionary dict = new NSMutableDictionary();
String actionName = "DirectAction/foo";
String queryString = WOURLEncoder.encodeAsCGIFormValues(dict);
String handlerKey = application().directActionRequestHandlerKey();

String url = "" actionName, queryString);

 

Ciao Frank



From: webobjects-dev-bounces+caputo=email@hidden [mailto:webobjects-dev-bounces+caputo=email@hidden] On Behalf Of Francis Labrie
Sent: Wednesday, 25. July 2007 14:19
To: WebObjects (Group)
Subject: Generate DirectAction URL with instance number when there is nosession

Hi,


For a special function, I need whenever it's possible to generate DirectAction URL including instance number. Unfortunately, if there is no session, there is no instance number in URLs using WOHyperlink, WOActionURL, WOContext, etc. And of course, I dont want to create session!

 Is there a clean way to generate such URL with instance number?


Kind regards,

--

Francis Labrie

Saint-Bruno-de-Montarville, Québec, Canada


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

This email sent to email@hidden

References: 
 >Generate DirectAction URL with instance number when there is no session (From: Francis Labrie <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.