I m looking for a simple java library which would let me make a java web server and share some files. Is there any libraries which would let me achieve this?
-
Why do you need a library and not the server itself?Vineet Reynolds– Vineet Reynolds2011-08-23 05:53:15 +00:00Commented Aug 23, 2011 at 5:53
-
I would like to make a very simple application which will automatically create a web server and share file across the network..without installing anything except applicationTushar Chutani– Tushar Chutani2011-08-23 05:56:20 +00:00Commented Aug 23, 2011 at 5:56
-
Is JSP support a requirement or is it just for pure static content? There are many lightweight webservers for static content, lighter than Jetty. Even plain Java 1.6 ships with a builtin one (albeit a bit hidden).BalusC– BalusC2011-08-23 20:53:18 +00:00Commented Aug 23, 2011 at 20:53
Add a comment
|
3 Answers
There is a host of different web servers which all can do what you want (provided it just is allowing users to download files).
A good, small library with a simple-to-get-started method, is the Acme Laboratory Java pages.
http://acme.com/java/software/Acme.Serve.Serve.html
serves the current directory without any fuzz.
Comments
You can directly use an Apache WebServer setup for this.
1 Comment
BalusC
I did not downvote, but the OP tagged
jsp and Apache HTTPD doesn't support it at all. That might have been the downvote reason :)