basexhttp and static content

Thursday, 17 November 2011 · 3 messages
MS
Michael Seiferlein reply to Leigh L Klotz Jr, 17 Nov 2011, 20:1417 Nov 2011 19:24 #
Leigh, thanks for your email! You might have a look at a small project I recently started, that might suit your needs. It is still really bare-bones + work in progress, but feel free to give it a try: https://github.com/micheee/xquery-webapp-skeleton Apart from that you might have a look at db:retrieve [1] which will be fine as well to serve some static contents. Hope this helps Michael [1] http://docs.basex.org/wiki/Database_Functions#db:retrieve
Quoted text · Leigh L Klotz Jr · 28 lines
Am 17.11.2011 um 19:14 schrieb Leigh L Klotz Jr: > I'm trying out BaseX and am interested in having the HTTP server serve up static pages which can then access the REST interface to BaseX from the same host and port. > > I saw there was a previous discussion about JSONP to hack around the same-origin policy, but I'd like to use XML and other tools I already have, so I'd like to put in a bunch of static files (Javascript, CSS, XSL, PNG, etc) and have the built-in Jetty serve them up conveniently from a single, easily-reached URI route. > > I've been through the documentation and the basex-talk list for recent posts and didn't see anything about this. > > Thank you, > Leigh. > > _______________________________________________ > BaseX-Talk mailing list > BaseX-Talk at mailman.uni-konstanz.de > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk Am 17.11.2011 um 19:14 schrieb Leigh L Klotz Jr: > I'm trying out BaseX and am interested in having the HTTP server serve up static pages which can then access the REST interface to BaseX from the same host and port. > > I saw there was a previous discussion about JSONP to hack around the same-origin policy, but I'd like to use XML and other tools I already have, so I'd like to put in a bunch of static files (Javascript, CSS, XSL, PNG, etc) and have the built-in Jetty serve them up conveniently from a single, easily-reached URI route. > > I've been through the documentation and the basex-talk list for recent posts and didn't see anything about this. > > Thank you, > Leigh. > > _______________________________________________ > BaseX-Talk mailing list > BaseX-Talk at mailman.uni-konstanz.de > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
CG
Christian Grünin reply to Leigh L Klotz Jr, 17 Nov 2011, 20:1417 Nov 2011 19:41 #
Dear Leigh, just a short supplement to Michael's mail: you can have a look at our WAR archive, which can be embedded in a servlet context: this way, you can talk to REST and WebDAV and use Jetty (or Tomcat, etc) for other purposes as well. Hope this helps, Christian
Quoted text · Leigh L Klotz Jr · 22 lines
On Thu, Nov 17, 2011 at 7:14 PM, Leigh L Klotz Jr <leigh.klotz at xerox.com> wrote: > I'm trying out BaseX and am interested in having the HTTP server serve up > static pages which can then access the REST interface to BaseX from the same > host and port. > > I saw there was a previous discussion about JSONP to hack around the > same-origin policy, but I'd like to use XML and other tools I already have, > so I'd like to put in a bunch of static files (Javascript, CSS, XSL, PNG, > etc) and have the built-in Jetty serve them up conveniently from a single, > easily-reached URI route. > > I've been through the documentation and the basex-talk list for recent posts > and didn't see anything about this. > > Thank you, > Leigh. > > _______________________________________________ > BaseX-Talk mailing list > BaseX-Talk at mailman.uni-konstanz.de > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >
LJ
Leigh L Klotz Jr17 Nov 2011 20:14 #
I'm trying out BaseX and am interested in having the HTTP server serve up static pages which can then access the REST interface to BaseX from the same host and port. I saw there was a previous discussion about JSONP to hack around the same-origin policy, but I'd like to use XML and other tools I already have, so I'd like to put in a bunch of static files (Javascript, CSS, XSL, PNG, etc) and have the built-in Jetty serve them up conveniently from a single, easily-reached URI route. I've been through the documentation and the basex-talk list for recent posts and didn't see anything about this. Thank you, Leigh.

⚡Generated with XQuery