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
0
votes
2 answers

Extract parameters from URL

I have problems with the character +(and maybe others) at the URIBuilder is suppose to get a decoded url but when I extract the query the + is replaced String decodedUrl = "www.foo.com?sign=AZrhQaTRSiys5GZtlwZ+H3qUyIY=&more=boo"; URIBuilder builder…
xedo
  • 1,117
  • 3
  • 18
  • 34
0
votes
1 answer

Get selective params as a map in Spring REST

I have written a Spring REST service which takes 4 parameters. One of the params "login" is known and the rest of the 3 are dynamic. is there any way in which I can get login as a param and rest of the params in a MultiValue Map ? I tried the…
Akshay Aroor
  • 109
  • 2
  • 8
0
votes
1 answer

How to access URI query parameters from a Resource class using Apigility?

I'm developing an Apigility driven application based on the Zend Framework 2. I want my application to provide nested responses for both -- single items and lists: /projects/1 { "id": "1", "title": "...", ... "_embedded": { …
automatix
  • 14,018
  • 26
  • 105
  • 230
0
votes
1 answer

Ordering of query parameters in pyramid.request object

I am writing a few REST APIs. In one of those I want to know order in which the parameters were mentioned in the query string. Right now, I am accessing query params using request.params This returns a nested-multi-dict. But I don't think the…
yashdosi
  • 1,186
  • 1
  • 18
  • 40
0
votes
1 answer

Iterate over param JSTL using foreach

I have list of request parameters that the key is an integer, like 0=hello&1=by&2=sss ....... I want to iterate over this list of parameters using foreach:
Waelkat
  • 80
  • 10
0
votes
0 answers

Spring - requests arguments list

My url looks like this: config_add?link=link1&time=time1&link=link2&time=time2 and I handle it using List: @RequestMapping("/config_add") public ModelAndView configAdd( @RequestParam(value = "link", required = false) List
user1884978
  • 91
  • 1
  • 7
0
votes
0 answers

Generic Request Param (runtime construction)

My requests look like: http://... ?type[A].size=14 &type[B].query=test My @Controller has a method which should accept those generic request params: @RequestMapping(...) public void test(MyModel m) { ... } public static class MyModel { …
Benjamin M
  • 23,599
  • 32
  • 121
  • 201
0
votes
1 answer

How to send string[] to the spring controller?

I have the following JQuery code which sends some request parameters to my Spring MVC controller. For some parameters I should get multiple values. $('#tb-email').click(function(event) { var base, data, formats, recipients, reportSource,…
phoenix
  • 985
  • 3
  • 17
  • 38
0
votes
1 answer

parsing form parameters from raw http requests in java

I'm trying to extract some information from raw HTTP Request messages (like the one below) and store them into instances of the org.apache.http.message.BasicHttpRequest (https://hc.apache.org/httpcomponents-core-ga/httpcore/apidocs/index.html)…
0
votes
1 answer

(Why) Should not the request parameters be accessed directly in controllers of a Yii application?

There are several ways to access the request parameters within a controller: direcly class MyController extends \CController { ... public function actionMy() { ... $myVar = $_GET['my_param']; ... } …
automatix
  • 14,018
  • 26
  • 105
  • 230
0
votes
2 answers

$.post is changing array of objects to array of arrays

I try to post via ajax some data. Watch sreenshot1. But jQuery automatic converts object to array. This can be seen in screenshot2 (chrome developer tools). Data send to $.post: Data inspect in chrome developer tools: Edited: Problems appear in…
Makla
  • 9,899
  • 16
  • 72
  • 142
0
votes
0 answers

Trying to use a @RequestParam field in Spring form

If I have a Spring form as follows:
Mr Gwent
  • 57
  • 1
  • 8
0
votes
1 answer

Unknown decoding of credentials for HTTP Post request

I have a 15 years old internet game and when it is open you can put in your username and password to connect with the server of the game. On the website of the game you can always see which users are connected. I want to have a button on my app or…
0
votes
1 answer

Managed Property from one bean to another

Can someone of you explain me, why the first code works and the other one doesn't? Working:
0
votes
1 answer

ContentNegotiatingViewResolver doesn't recognize media type (XML/JSON) when the url has parameters Query String

I have my ContentNegotiatingViewResolver setup and it works fine when I have a request like that: htttp://localhost:8080/api/getSubscriptions.json (it returns JSON) or htttp://localhost:8080/api/getSubscriptions.xml (it returns XML). But, when I try…