It's not a secret anymore!
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


Hare Rama

Joined: May 17, 2001
Posts: 9
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
Is there any option to do this with Javawebserver?
Hare Rama
Frank Carver

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 to the localhost IP address
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 ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
I agree. Here's the link:
subject: Testing
It's not a secret anymore!