Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Run a Servlet

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
I am new to Servlets.pls let me know how to run a simple servlet.where to put my javafile,html file, how to run the webserver.i am using javawebserver2.0 trial version.
Rahul

 
Preethi M
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Rahul!
Here are the steps for u to proceed with servlets.
1. Go to "c:/javawebserver2.0/bin/httpd" This starts ur webserver.
2. Complie and Save the javafile in servlets directory.
3. Save the html file in public_html directory.
4. Open the browser type "http://localhost:8080/servlet/javafilename"
Hope it's clear.
Have a Nice Day
Preethi M
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic