• 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
Parse URL
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Parse URL


  • Subject: Parse URL
  • From: ".::welemski::." <email@hidden>
  • Date: Mon, 28 Jul 2008 19:05:18 +0800

Hi Lists,

I have made a configuration in my /etc/hosts file like so:

127.0.0.1 www.adminpage.com
127.0.0.1 www.userpage.com
127.0.0.1 www.memberpage.com
127.0.0.1 localhost

and i have 3 WOComponent page namely:

WOAdminPage
WOUserPage
WOMemberPage
Main

How do i tell my default Main component page to parse the URL and
redirect the user based on the URL entered. For example:

if i will enter "www.adminpage.com:somePort" it will parse this URL
and redirect a page to point to a component named WOAdminPage same
with the rest of the pages.

So far I've tried using WOComponent, WOApplication and InetAddress's
class to do some parsing routine but I always endup with the
"localhost" and the local "IP" address.
I can't seem to get or capture the "URL" entered by the user.

How do i do URL parsing?

Thanks in advance.


Regards,

--
 -- -- -- -- -- -- -- -- -- -- --
          welemski
 -- -- -- -- -- -- -- -- -- -- --
 _______________________________________________
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: Parse URL
      • From: Simon McLean <email@hidden>
  • Prev by Date: Eclipse WO + SVN
  • Next by Date: Re: Parse URL
  • Previous by thread: Re: Eclipse WO + SVN
  • Next by thread: Re: Parse URL
  • Index(es):
    • Date
    • Thread