On Oct 13, 2009, at 10:12 AM, Quintin Beukes wrote:

Why does it have to have a servlet at all?

You need a default servlet to serve static content. Jetty and tomcat install one by default in each web app (unless you override it) but these automatic default servlets serve content from inside the war. If you pack stuff up in a war, you shouldn't need any servlet :-). If you want the content served from somewhere else, you need to configure a default servlet to tell it where the "somewhere else" is.

hope this is clearer :-)
david jencks



Quintin Beukes



On Tue, Oct 13, 2009 at 7:05 PM, David Jencks <[email protected]> wrote:

On Oct 13, 2009, at 8:31 AM, juhanay wrote:


Hi
My problem is simple. How to deploy plain html-files or a directory to a user without packing these things is a war file(like apache web server
does). So that the user may browse the directory stucture with the
browser.
WAR-file is not viable option since i cannot pack all the files in a war
file.

Why not?

Assuming you have a good answer to that question :-) you can set up a web app that has only the default servlet for the web container you are using (jetty or tomcat) and configure it to serve static content from wherever it actually is. Unfortunately I don't have an example of how to do this handy, but I suspect either jetty or tomcat documentation might explain how to do this. It would be a good thing to get into our docs as well (assuming it
isn't already there and I just don't know about it).

thanks
david jencks

--
View this message in context:
http://www.nabble.com/How-to-deploy-plain-html-files-with-geronimo--tp25875139s134p25875139.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.




Reply via email to