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). 2.how to run the server(nothing happens in the browser after double clicking the startserver.bat) Thanks in advance.
posted 15 years ago
Hello Jayasri, I am telling u the solution using java web server : Steps: 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. Swati