wood burning stoves 2.0*
The moose likes Servlets and the fly likes Testing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Testing" Watch "Testing" New topic
Author

Testing

Hare Rama
Greenhorn

Joined: May 17, 2001
Posts: 9
Hi,
I am using Javawebserver2.0 for my servlets. I have to test my servlets like a real time on web in my system which is not having internet connection. For example, I have home page of my project with path http://localhost:8080/servlet/Index & it should get invoked after typing www.xyz.com.
Is there any option to do this with Javawebserver?
Thanks,
Hare Rama
Frank Carver
Sheriff

Joined: Jan 07, 1999
Posts: 6920
If your system is not connected to the net, all you need is for the local name-to-ip-address mapping to map www.xyz.com to the localhost IP address 127.0.0.1.
The easiest way to do this is to edit your hosts file (Unix/Linux /etc/hosts; Win95/98 c:\windows\hosts; WinNT c:\windows\system32\hosts (I think)) so that it contains a line like

On Windows you may have to reboot for this to take effect, but try it first ...


Read about me at frankcarver.me ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Testing