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 running a servlet 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 "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.
wood burning stoves
subject: running a servlet
Similar Threads
"Access is denied" when trying to read a file on remote windows box from a servlet
Uploadin file in remote system
How to create html pages by compiling servlets code?
How to run bat file from Java program
How to run sevlet examples on Weblogic Server 5.1