• 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: D2W and Direct Actions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: D2W and Direct Actions


  • Subject: Re: D2W and Direct Actions
  • From: Mike Schrag <email@hidden>
  • Date: Fri, 1 Jun 2007 14:08:56 -0400

And the second question: how did you do the URL creation? I'm still looking for a good way of creating "nice" URLs. I'm absolutely no Apache specialist, I know it's the WebServer used on Mac OS X Server ... okay, no kidding, I know a bit but not nearly enough. Over the time I saw a couple of interesting approaches for nicer URLs but I haven't decided to use one of them for my own apps ...
We do a LOT of stuff with Apache rewrite rules on our apps ... A few months back I added some things into to Wonder to make the WO side a little easier. If you override ERXApplication_rewriteURL(String url), you can write the "formatter" and in apache rewrite rules, you write the "parser".

So for instance, we have like http://www.oursite.com/wa/someAction? id=whatever

I only leave the /wa/ as a tiny shout-out to WO. So my _rewriteURL method can rip apart the URLs and make everything look like that (well, for da's, -- otherwise it's /wo/0.4.3.2.5 whatever), then my rewrite rule looks like:

RewriteRule ^(/-{0,1}[0-9]*/*(wo|wr|wa|womp|wis|ajax)/.*)$ /cgi-bin/ WebObjects/OurApp.woa$1 [PT]

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


  • Follow-Ups:
    • Re: D2W and Direct Actions
      • From: Denis Frolov <email@hidden>
    • Re: D2W and Direct Actions
      • From: Guido Neitzer <email@hidden>
References: 
 >Re: D2W and Direct Actions (From: Denis Frolov <email@hidden>)
 >Re: D2W and Direct Actions (From: Guido Neitzer <email@hidden>)

  • Prev by Date: Re: Xcode runtime WOComponent editing bug
  • Next by Date: Re: D2W and Direct Actions
  • Previous by thread: Re: D2W and Direct Actions
  • Next by thread: Re: D2W and Direct Actions
  • Index(es):
    • Date
    • Thread