Thank you for that concise and riddle free answer!
You are correct it's _rewriteURL and thank you again for that gem.
However, I'm working off the documentation found here:
http://webobjects.mdimension.com/wonder/api/er/extensions/appserver/ERXApplication.html#_rewriteURL(java.lang.String)
I've loaded the prescribed changes into my properties file but they
don't seem to be having any effect i.e. the urls are not being
rewritten to /appname they are still /cgi-bin/WebObjects/AppName.woa.
The application is of type ERXAjaxApplication and in the application's
constructor I set the context class to type ERXAjaxContext.
Is there another step I'm missing?
Thanks in advance,
Johnny
On Nov 21, 2008, at 10:12 AM, [EMAIL PROTECTED]
wrote:
Message: 2
Date: Thu, 20 Nov 2008 20:48:49 -0500
From: Mike Schrag <[EMAIL PROTECTED]>
Subject: Re: URL for WebObjects?
To: WebObjects Development <[email protected]>
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes
I'd like to be able to just auto-magically generate the the
hyperlinks with Wonder and then use apache to translate these urls
back to something the WebObjects CGI adaptor understands.
Wonder implements this at a lower level and rewrites ALL urls rather
than requiring you to use custom components to do it. You can either
use the simple interface where you can specify a regex pattern and
replacement (for the common case of ripping off the /cgi-bin/
WebObjects/AppName.woa, for example) or you can override (I think) the
_rewriteURL in your ERXApplication subclass (maybe it doesn't have an
underscore -- i'd have to look it up) method and implement a more
complicated ruleset. This must together with a set of inverse rules
implemented with (for example) Apache mod_rewrite. Wonder rewrites
the URLs that your app generates, mod_rewrite takes those URLs and
turns them back into normal WO urls.
ms
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [EMAIL PROTECTED]