java string url path

Code:

String webpageURL = "http://192.168.0.1/website/";

Is there a way to leave the ip address out of that string and
have the jsp pull the current url.

For example:
If someone outside my firewall enters the real world ip address (200.200.200.200).
it will use the real world ip instead of the internal.

so if they are on the outside it will use http://200.200.200.200/website/
and if you are on the inside it will use http://192.168.0.1/website/

Clear as mud?

Thanks!

Larry

View full post on Webmaster-Talk.com

, ,

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Get Adobe Flash playerPlugin by wpburn.com wordpress themes


RSS Site FeedRSS Site Feed

© 1992-2011 DC2NET™, Inc. All Rights Reserved