Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

running a servlet

 
jayasri raghu
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
swati maken
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic