Parse URL
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