It's not a secret anymore!
The moose likes Servlets and the fly likes running a servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "running a servlet" Watch "running a servlet" New topic

running a servlet

jayasri raghu

Joined: Jan 20, 2001
Posts: 8
Hi please explain the following:
1.To run a servlet using jswdk, where to put the .class file of the servlet(and the html file). to run the server(nothing happens in the browser after
double clicking the startserver.bat)
Thanks in advance.
swati maken

Joined: Jan 12, 2001
Posts: 14
Hello Jayasri,
I am telling u the solution using java web server :
1)Write one very simple servlet then compile it and copy the '.class' file into the java web server's 'servlet' directory.
2) open ur java web server admin page and add the name of ur servlet in servlets and then click on load button.
3) now open ur browser and write the following address in ur url: "http://localhost:8080/servlet/abc
where 'abc' is the name of ur servlet.
4) now ur servlet should work.
Do reply after u succeed.
Best of luck.
I agree. Here's the link:
subject: running a servlet
It's not a secret anymore!