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 = context().urlWithRequestHandlerKey(handlerKey, actionName, 
queryString);

 

Ciao Frank


________________________________

        From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 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 protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to