FAQ Database Discussion Community


Missing dependency for method at parameter at index Rest WebService Java

java,rest,query-parameters
In my Restful web service, a method takes 4 parameters. String String String and Object. All other methods are working fine except this method with Object as parameter. I am using Query param. I am getting the following exception when trying to run it on server. SEVERE: Missing dependency for...

Adding query Paramters to Go Json Rest

json,rest,go,query-parameters,json-api
I'm very new to Golang and am using the library go-json-rest. I'm trying to recognize queries parameters in the code for example localhost:8080/reminders?hello=world I want to access {hello: world} . I have the following code: //in another function &rest.Route{"GET", "/reminders", i.GetAllReminders}, func (i *Impl) GetAllReminders(w rest.ResponseWriter, r *rest.Request) { reminders...

Jersey, @QueryParam List

jersey,query-parameters
I want to take a list as a parameter, but the value of the list does not correspond to java version list. For example @QueryParam("orderBy") List orderBy) This list has the value of [age, name] as an element. Is it possible to have the value separately. Like 1st element age...

How to add query parameters to a HTTP GET request by OkHttp?

java,http-get,okhttp,query-parameters
I am using the latest okhttp version: okhttp-2.3.0.jar How to add query parameters to GET request in okhttp in java ? I found a related question about android, but no answer here!...

SQL Server Output Parameter is returning mixed results

c#,sql-server,vb.net,stored-procedures,query-parameters
** EDIT ***************** I changed from GETDATE() to SYSDATETIME(). I also changed my measure from milliseconds to microseconds. The processing was happening so fast that milliseconds weren't able to measure it. My goal with this code is to calculate the processing time of the query string that's passed into the...

How to pass String Parameters to Command objects in ADO with VBScript

vbscript,ado,query-parameters
I have a function which returns a part of a SQL query. Function GetYQConditions(command, startYQ, endYQ) Dim strSql strSql = " AND yq>=? and yq<=?" command.Parameters.Append(command.CreateParameter(undefined, 200, 1, 61, startYQ)) command.Parameters.Append(command.CreateParameter(undefined, 200, 1, 61, endYQ)) GetYQConditions = strSql End Function Problem: The issue is yq>=? and yq<=? needs to have...

React Router and Arbitrary Query Params: Page Refreshes Unintentionally on Load?

javascript,reactjs,query-parameters,react-router
I've been using React Router with great success the past few weeks, but I just ran into an issue that I can't seem to find a resolution for. Whenever an arbitrary query parameter is appended to a url (in our case, for URL tracking purposes from email) the page that...

How to properly pass parameter in query string with redirect_to? (Rails 4)

ruby-on-rails,ruby,url-redirection,url-parameters,query-parameters
I'm building a contact form creation app with rails 4. Users can create contact forms (called Contactable in app), which when submitted creates a Contact and redirects the contact to the URL the user specifies. I'm trying to pass the contact's email address through the redirect as a query string....

Trailing slash before a query string. Bad practice?

url,query-parameters,trailing-slash
I have a URL like www.example.com/store/, which leads to a store page When a user clicks on a discount link, it adds the parameter ?discount=foo, so my link looks like this: www.example.com/store/?discount=foo. Everything is functional. But is it bad practice to have the forward slash before the query string in...