• 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
direct action URL without a session
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

direct action URL without a session


  • Subject: direct action URL without a session
  • From: "email@hidden" <email@hidden>
  • Date: Fri, 28 Oct 2016 15:29:23 +0200

Hello there,

the subject says it all — is there a decent way to construct a direct action URL from a code which has no session (and thus no context)? Note I need a full URL, not a relative one (it is to be used in diverse ways like “sent to client by an e-mail” etc.)

At the moment, I use

Application app=Application.application()
String url=app.cgiAdaptorURL+'/'+app.name+'/'+app.directActionRequestHandlerKey+'/'+directActionName+'?'+directActionAttributeName+'='+directActionAttributeValue

which sort of works, but is not too flexible (e.g., it stops working with direct access, where it lacks the port), it is very slightly incorrect (does not contain ".woa"; seems harmless, but still weird), and besides, is pretty ugly code (and would become far uglier with more attributes than one). Is there a better way?

Thanks,
OC


 _______________________________________________
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: direct action URL without a session
      • From: Ramsey Gurley <email@hidden>
    • Re: direct action URL without a session
      • From: René Bock <email@hidden>
  • Prev by Date: Re: excel export D2W
  • Next by Date: Re: direct action URL without a session
  • Previous by thread: Re: Using WOInject with an intermediate WOApplication subclass
  • Next by thread: Re: direct action URL without a session
  • Index(es):
    • Date
    • Thread