My html code:
  var response = $http({
            method: "GET",
            url: 'http://localhost:9000/office/offices/' + plainText,
            params : 
                {
                    'namefromui' : "myname"
                },
            responseType: "json"
        }).success(function (response) {
            console.log("otherserver.success!"+response)
            $scope.firstName = response;
        }).error(function (data, status, headers, config) {
            console.log("otherserver.error!")
        });

Service code:
@GET

@Path("/{id}/")
@Produces("text/plain")
public String getCustomer(@PathParam("id") String id, 
@QueryParam("namefromui") String namefromui) {

         }

Able to receive ID but not namefromui

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to