Re: Webobjects-dev Digest, Vol 5, Issue 1137
Re: Webobjects-dev Digest, Vol 5, Issue 1137
- Subject: Re: Webobjects-dev Digest, Vol 5, Issue 1137
- From: Johnny Miller <email@hidden>
- Date: Fri, 21 Nov 2008 10:58:52 -1000
Thank you for that concise and riddle free answer!
You are correct it's _rewriteURL and thank you again for that gem.
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
Message: 2 Date: Thu, 20 Nov 2008 20:48:49 -0500 From: Mike Schrag <email@hidden> Subject: Re: URL for WebObjects? To: WebObjects Development <email@hidden> Message-ID: <email@hidden">email@hidden> 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@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden