Forwarding to the mailing-list...
-------- Original-Nachricht -------- Betreff: Re: [basex-talk] How to retrieve HTTP request parameters and use them in XQuery with BaseX Datum: Thu, 30 Dec 2010 13:59:57 +0000 Von: software developer computer.software.developer@gmail.com An: Andreas Weiler andreas.weiler@uni-konstanz.de
Well, then the problem changes to 'how to pass dynamic parameters from an HTTP client to the java class in question - java class is running on a different machine' - that bridge was to be the HTTP request parameters - what else can serve to pass dynamic parameters to the xquery? I invoke BaseX via jax-rx and xquery is stored on server-side (cannot put that in the URL itself) - xquery is invoked using run param to jax-rx invocation.
Your solution has xquery passing the param to the java class, in my case an external HTTP client is to send the parameters...so, how would the java class receive the HTTP request param or alternatively, how would the xquery receive request param directly via jax-rx?
On Thu, Dec 30, 2010 at 1:18 PM, Andreas Weiler <andreas.weiler@uni-konstanz.de mailto:andreas.weiler@uni-konstanz.de> wrote:
Hi,
passing parameters to xquery dynamically can be done with the xquery java bindings. So the parameter comes directly from your java class.