Hi,
I had this idea rolling in my mind for quite a bit: adding a javascript client that can talk back to geoserver with ajax calls is... humm...
too hard now.
First of all, there is the issue of putting the files somewhere they
can be served. So, you basically have to:
a) roll your own extra web app, for which you need a little java
container webapps
b) unpack geoserver, and modify the webapp contents
c) use Apache or a separate static pages web server
a) and b) require some java webapps knowledge. Not too sure our
average user can do that. Besides this, b) is a bad idea, because
you mix your own code with Geoserver one, and you have to
redo the "mix" every time you upgrade Geoserver.
c) works if you have Apache or IIS knowledge, but then you may be
stuck with ajax calls. One thing that's not very well known, is
that ajax calls are sandboxed, you can call back only the server
that provided the javascript code. This rules out c), and makes
it impossible to use WFS-T, unless you are so good to know
how to proxy Geoserver with Apache, making the outside world
think you are serving everything from the same server.
The idea I have is really simple (thanks Chris and Justin for
the contributions on it): we add a data_dir/www folder in the
Geoserver data directory, and create a servlet that serves
it straight on http://myserver:8080/geoserver/www.
This directory can contain only static files, no jsp, no dinamic
stuff whatsoever (if you're in that business, it makes sense
to explore option a) or c) again), but it will allow everybody
to serve static files directly from their data dir.
On a long term vision, you could have all
your data in the data dir, and your custom application as well,
easily portable from one location to another, and no
fiddling when upgrading Geoserver.
Tecnically this should not be too hard, Justin already provided
us with a servlet that can serve straight from the data dir,
so it's a config and backport away (yeah, I would like to have
this in 1.5.2).
Well, how does this sound?
Cheers
Andrea