This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Servlets and the fly likes how to program a simple webserver to run 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 "how to program a simple webserver to run a servlet??" Watch "how to program a simple webserver to run a servlet??" New topic

how to program a simple webserver to run a servlet??

gopal singh

Joined: Feb 06, 2001
Posts: 9
actually i want to run a servlet without using survletrunner
utility of jsdk2.0 i.e. using my own webserver program but i
am unable to do it.i don't have any idea about it.
i wanna know the steps which will have to be taken in order
to run any servlet through my own webserver program or to put
it straightforward i need the code of a simple webserver which
provide the facility of running a servlet through it and i want
this code to adhere only to the aforesaid area and not to the
other technicalities of a webserver
Bharatesh H Kakamari
Ranch Hand

Joined: Nov 09, 2000
Posts: 198
Servlets are server-side technology. You cannot execute a server with executing *any* web server that will actually execute the servlet.
Laojar Chuger
Ranch Hand

Joined: Dec 20, 2000
Posts: 111
Study the javax.servlet package, that's what you have to provide if you want to do it in your way.
Scott Stirling

Joined: Mar 05, 2001
Posts: 24
Pretty specific requirements, man. You want a cherry on that?
Take a look at the source for Jetty, which is a pretty basic HTTP server and Servlet engine:
Or even better, check out Tomcat's source. You should be able to isolate the servlet container from the Web service without too much trouble (follow the package names):

Scott Stirling<BR>Author of <A HREF="" TARGET=_blank rel="nofollow">Java Server Pages Application Development</A>
subject: how to program a simple webserver to run a servlet??
Similar Threads
Accessing webserver on network VIA internet ?
Simple Web Server to respond to a AXIS client request
Accessing webserver on a network
to copy a policy file from server machine to client machine in java
How to test a servlet.