• 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: ServerName outside RR loop?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ServerName outside RR loop?


  • Subject: Re: ServerName outside RR loop?
  • From: Chuck Hill <email@hidden>
  • Date: Tue, 2 Feb 2010 09:51:36 -0800


On Feb 2, 2010, at 9:28 AM, Jon Nolan wrote:

Yeah, I figured as much.  Thanks Chuck.

As an aside, this need is related to generating direct action URLs without a context or request (i.e. within a background thread.) Is it worthwhile to anyone beside me to have a directActionURLForActionNamed(...) method that doesn't depend on (ERX)WOContext? I keep running into this with threaded email generation, user-agent headers in a crawler, etc. When I get some time I may jump on it.

It should be easy to assemble:
"http://"; + WOHost property + WOCGIAdaptorUrl property + WOApplicationName property + ".woa/" + application.directActionRequestHandlerKey() + "/" + actionName



Chuck



Chuck Hill wrote:
If you can't get it from the request headers, then storing it or using a property are the only options.

Chuck

On Feb 1, 2010, at 5:16 PM, Jon Nolan wrote:

Is it possible to get at the server name without a request/ context? It doesn't seem likely but I thought it worth asking.

Right now I'm storing it at the application level when the first request is made. Alternatively, it can be handled by a property. Both of those seem extremely inelegant and I'm hoping for a cleaner solution.

Thanks,
Jon

P.S. I am using Wonder.


-- Chuck Hill Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects








_______________________________________________
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: ServerName outside RR loop?
      • From: Mike Schrag <email@hidden>
References: 
 >ServerName outside RR loop? (From: Jon Nolan <email@hidden>)
 >Re: ServerName outside RR loop? (From: Chuck Hill <email@hidden>)
 >Re: ServerName outside RR loop? (From: Jon Nolan <email@hidden>)

  • Prev by Date: Re: counting sessions
  • Next by Date: Re: ServerName outside RR loop?
  • Previous by thread: Re: ServerName outside RR loop?
  • Next by thread: Re: ServerName outside RR loop?
  • Index(es):
    • Date
    • Thread