aspose file tools*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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
Author

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

gopal singh
Greenhorn

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.
HTH
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
Greenhorn

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:
http://jetty.mortbay.com/
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):
http://jakarta.apache.org/tomcat


Scott Stirling<BR>Author of <A HREF="http://www.amazon.com/exec/obidos/ASIN/067231939X/ref=ase_electricporkchop/107-2476442-4883722" TARGET=_blank rel="nofollow">Java Server Pages Application Development</A>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to program a simple webserver to run a servlet??
 
Similar Threads
Simple Web Server to respond to a AXIS client request
Accessing webserver on a network
Accessing webserver on network VIA internet ?
How to test a servlet.
to copy a policy file from server machine to client machine in java