Meaningless Drivel is fun!*
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 Murach's Java Servlets and JSP this week in the Servlets 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.
It is sorta covered in the JavaRanch Style Guide.
subject: running a servlet
Similar Threads
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
"Access is denied" when trying to read a file on remote windows box from a servlet