Questions tagged [http-request-parameters]

The parameters that are mapped to the servlet request when they are parsed from the http request.

The parameters that are mapped to the servlet request when they are parsed from the http request. These parameters represent a query string when a method GET is used and a body of the request if a method POST is used.

276 questions
2
votes
2 answers

@ManagedProperty on #{param} does not work in @ViewScoped

My bean has this: @ManagedBean @ViewScoped public class BookBean implements Serializable { @ManagedProperty(value = "#{param.id}") // does not work with @ViewScoped private String id; public void init() { id =…
ChuongPham
  • 4,761
  • 8
  • 43
  • 53
2
votes
2 answers

HTTP Request Include Equals checkbox can't be unchecked

When defining HTTP Request, there's a checkbox for each parameter: Include Equals This checkbox can't be unchecked even when choosing different method or parameter. I don't see any reference in HTTP Request for using it. Why is this checkbox shown?…
Ori Marko
  • 56,308
  • 23
  • 131
  • 233
2
votes
1 answer

Spring REST API with swagger - map of values in request param

I have a Spring Boot based REST API application with the following endpoint (Written in Kotlin) @RequestMapping(value = ["/search"], method = [RequestMethod.GET]) @ApiOperation("Check whether any of the map values exists. Returns string…
2
votes
2 answers

http request with params

Is there some function that adds the request params to an http request in way that you don't have to do it "manually"? For example, if I want to put "user": "x" as param of my request, in a way to achieve something like…
Little Monkey
  • 5,395
  • 14
  • 45
  • 83
2
votes
0 answers

Errors on running express Server with Node.js with Universal Angular 5

I have tweo problems. First, I can't pass a queryParam from server.ts to AppCompoment.ts. Second, the service translateService throws ERROR [Error] without message when is executed on the server, but works fine when is executed on the browser. Here…
2
votes
1 answer

node.js http set request parameters

I have a node.js application and I want to call a REST api by using http.request. This is my code: http = require("http"); const options = { host: localhost, port: 8103, path: "/rest/getUser?userId=12345", method:…
M. Henrikh
  • 71
  • 1
  • 5
2
votes
2 answers

How can I get HTTP request headers in Angular 4?

In internet, I see only add parameter to HTTP request like below. this.headers.append('Content-Type', 'application/json'); this.headers.append('Accept', 'application/json'); this.headers.append('Access-Control-Allow-Credentials', 'true'); I…
stef
  • 91
  • 2
  • 10
2
votes
2 answers

Cannot use Map as a JSON @RequestParam in Spring REST controller

This controller @GetMapping("temp") public String temp(@RequestParam(value = "foo") int foo, @RequestParam(value = "bar") Map bar) { return "Hello"; } Produces the following error: { "exception":…
2
votes
1 answer

Unable to set and get $_GET in cakephp2

I want to have a following condition in my view.ctp. I want to get the parameters like "/?parameters=name&data=1" from a url and have it in my view. I want to set a $_GET. Where can I set it? Controller,Element,lor View? I read multiple tutorials…
Tony
  • 193
  • 1
  • 11
2
votes
0 answers

trying to change request in Filter, so that it reflect in @RequestParam

I am trying the read the request attributes and change them using Filter, so that in Controller I would receive changed values as per my need. but the changes I did in Filter is not reflected in @RequestParam. My controller: public Response…
2
votes
0 answers

RequestParam value converter

We are using Swagger to generate our API interfaces and model classes. However, Swagger generates the request parameters of our endpoints in a camelCase style instead of snake_case as it specified in our APIs. For example, the code generated is: …
John
  • 31
  • 3
2
votes
2 answers

Spring default value of RequestParam equal to a method call

I'm trying to add a request parameter with a default value - however I'd like that default value to be the logged in user's name. I have a method getUsername() which returns the current user's name but I can't set the value of an annotation to a…
cscan
  • 3,684
  • 9
  • 45
  • 83
2
votes
1 answer

Pass parameter from Button to Java spring MVC controller

I've been looking for something that might help me to solve this without success. What I need is just to call a Spring Controller by pressing a Button element, and pass from it a RequestParam("statusId" in this specific case). Is there a way to do…
2
votes
1 answer

Missing character "+" in the return value of Request Parameter Map in JSF

I am trying to get parameters from an URL in my JSF application. The URL as following: http://localhost:8088/*******/pages/rh/evaluation/layouts/evaluationLayout.jsf?crt_affectId=RqI+dgtx6q8= So here the parameter is crt_affectId and its value is…
Daamix
  • 35
  • 4
2
votes
1 answer

Android App with ASP.NET WebAPi Server - send complex types

I have a Android App which is via Web Services connected with my ASP.NET WebApi Server. For sending requests I am using AsyncHttpClient and for passing parameters to the server I use RequestParams. Now I want to send a complex object that contains a…
rimes
  • 761
  • 1
  • 8
  • 25