This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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
Don't get me started about those stupid light bulbs.
subject: Testing
Similar Threads
Localhost leads to nowhere
Connect jsp & mySQL Remotely
Apache -> Tomcat servlet problem
Reading local file
access to servlet