• 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: Having WO respond to direct URLs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Having WO respond to direct URLs


  • Subject: Re: Having WO respond to direct URLs
  • From: Chuck Hill <email@hidden>
  • Date: Mon, 19 Sep 2005 10:11:56 -0700

You will have to generate the URL yourself, but given the user and a WORequest to get the host name from, that should be trivial.

You can use Apache Rewrite rules to translate http://mywebsite/ username into something like
http://mywebsite/cgi-bin/WebObjects/Portal.woa/wa/home?user=username


And then implement a homeAction direct action to pick up the user form value and Do The Right Thing.

Chuck


On Sep 19, 2005, at 9:55 AM, Danny Wang wrote:

I'm trying to get an app running where I can have users of the site hit their home page/portal when they type http://mywebsite/ username. The users will get created automatically and user names will be unique. The questions is how do I get WO to respond to URLs like that? It'll be ok to have a redirection (to the WO app URL), but I can't think of a way to automatically generate that URL and have my WO app respond to it.

Or, even if there's no good way to have it get automatically created, it would be nice to have that kind of a link somehow. The only thing I can think of is to create the directory in the WebServer directoy and put a html page that redirects to the WO app using Direct Actions.

Thanks for any ideas! I really appreciate the help this list has given me over the course of this project...maybe someday I'll have something useful to contribute. =)

--
Danny

--
Unnamed - an introduction to web applications using WebObjects and Xcode http://www.global-village.net/wointro


Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects




_______________________________________________ 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
References: 
 >Having WO respond to direct URLs (From: Danny Wang <email@hidden>)

  • Prev by Date: Re: Having WO respond to direct URLs
  • Next by Date: Re: Having WO respond to direct URLs
  • Previous by thread: Re: Having WO respond to direct URLs
  • Next by thread: Re: Having WO respond to direct URLs
  • Index(es):
    • Date
    • Thread