• 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: Generate DirectAction URL with instance number when there is nosession
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Subject: RE: Generate DirectAction URL with instance number when there is nosession
  • From: "Frank Caputo" <email@hidden>
  • Date: Wed, 25 Jul 2007 15:43:19 +0200
  • Thread-topic: 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:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Generate DirectAction URL with instance number when there is nosession
      • From: Francis Labrie <email@hidden>
References: 
 >Generate DirectAction URL with instance number when there is no session (From: Francis Labrie <email@hidden>)

  • Prev by Date: Re: Stateless but get bindings of childs
  • Next by Date: Re: Stateless but get bindings of childs
  • Previous by thread: Generate DirectAction URL with instance number when there is no session
  • Next by thread: Re: Generate DirectAction URL with instance number when there is nosession
  • Index(es):
    • Date
    • Thread