Re: Direct Action Question
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.