> Looking in the XQueryGenerator
> code, it would be fairly trivial to automatically pass all request
> parameters to exist.
I found this to be necessary for request parameters with multiple
values, ie /someUri?status=complete&status=waiting
I just inserted the following code at the end of the declareParameters method:
Request request = ObjectModelHelper.getRequest(objectModel);
for (Enumeration e = request.getParameterNames();
e.hasMoreElements();) {
String paramName = (String)e.nextElement();
String[] values = request.getParameterValues(paramName);
if (values.length == 1) {
service.declareVariable(paramName, values[0]);
} else {
service.declareVariable(paramName, values);
}
}
this seems to work fine so far.
-Ben
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]