• 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: Direct Action Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Direct Action Question


  • Subject: Re: Direct Action Question
  • From: Chris Giordano <email@hidden>
  • Date: Thu, 10 Jun 2004 13:11:48 -0400

James,

On Jun 10, 2004, at 12:05 PM, James Cicenia wrote:

Is there a utility method out there that will give me the first half of my URL, i.e., http://10.0.1.3:51787/cgi-bin/WebObjects/TOSDevelopment.woa ???

Doesn't seem right to be making it a hardcoded string.

I believe WORequest's applicationURLPrefix() will give you most of what you're looking for:
http://developer.apple.com/documentation/WebObjects/Reference/API/com/ webobjects/appserver/WORequest.html


You might also want to look at WOContext's directActionURLForActionNamed given that the discussion was about creating a direct action URL. It might be a more direct route:

http://developer.apple.com/documentation/WebObjects/Reference/API/com/ webobjects/appserver/ WOContext.html#directActionURLForActionNamed(java.lang.String, com.web objects.foundation.NSDictionary)

chris
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >RE: Direct Action Question (From: "Jonathan Fleming" <email@hidden>)
 >Re: Direct Action Question (From: James Cicenia <email@hidden>)

  • Prev by Date: Re: Direct Action Question
  • Next by Date: Re: Direct Action Question
  • Previous by thread: Re: Direct Action Question
  • Next by thread: Re: Direct Action Question
  • Index(es):
    • Date
    • Thread