http-request-parameters Questions
2
Solved
I've a CDI managed bean wherein I'd like to set request parameters as managed properties:
import javax.inject.Named;
import javax.enterprise.context.RequestScoped;
@Named
@RequestScoped
public cl...
Manon asked 28/2, 2015 at 9:12
6
Solved
I want to send json data in url as below .
editTest.jsp?details=374889331-{"aNumber":2}
How can I do this?
Abby asked 24/10, 2014 at 5:6
5
Why is Spring 3.2 only mapping my Boolean based on that the requestparam is "0" or "1" ?
@RequestParam(required= false, defaultValue = "false") Boolean preview
Preview will only be "true" when ...
Lightfooted asked 4/10, 2013 at 10:18
3
Solved
I am trying to hit the WireMock with following stub but it seems that the query param is not getting matched. Here is the response:
Request was not matched
=======================
-------------...
Mala asked 4/12, 2019 at 12:34
2
I want to log the request parameters in the HTTP request via Spring filter or aspect. I tried different ways, but either request parameters are null or method is not called.
I am using Postman and ...
Turbo asked 19/1, 2021 at 11:8
3
Solved
I use @RequestParam to get the parameter value,but I find the if I pass the value like 'name=abc&def&id=123',I will get the name value 'abc' instead of 'abc&def'. I find the encode and ...
Peregrine asked 19/7, 2022 at 13:45
3
Solved
I want to validate one of the request parameters in my controller . The request parameter should be from one of the list of given values , if not , an error should be thrown . In the below code , I...
Schilt asked 20/12, 2019 at 9:34
5
Solved
I want to access two different pages in my browser using:
http://localhost:8080/name?views
and
http://localhost:8080/name?uviews
But I'm getting error Required String parameter 'uviews' is no...
Officialdom asked 20/9, 2016 at 8:6
1
Solved
I have this enum declaration below
public enum FamilyType {
FIRSTNAME("firstname"),
LASTNAME("lastname");
private final String type;
FamilyType(String type) {
this.type =...
Seligmann asked 22/4, 2021 at 9:27
4
Solved
I've read how to send parameters using JSF but what if the user types their companyId in the URL when accessing their login page? For example,
http://my.company.url/productName/login.faces?comp...
Cochleate asked 23/5, 2012 at 16:49
6
Solved
I have gone through the Spring documentation to know about @RequestBody, and they have given the following explanation:
The @RequestBody method parameter annotation indicates that a method param...
Unceremonious asked 20/1, 2015 at 7:20
3
Solved
I have the same problem as Set request character encoding of JSF input submitted values to UTF-8 in GlassFish, the submitted values arrive as Mojibake. However, the answer is targeted at GlassFish ...
Depilatory asked 13/7, 2013 at 8:18
2
Solved
@RestController
class MyController {
@RequestMapping(...)
public void test(Container container) { ... }
}
Spring by default uses Dot-Notation to deserialize a nested @RequestParam:
class Conta...
Messina asked 5/2, 2015 at 16:46
1
Solved
I am aware of how to get the request parameters from a url using Flask Request: request.args.get('<param>'). Indeed, that's the only thing I can find when searching for the title questi...
Bushy asked 31/8, 2018 at 14:24
2
I have many controllers in my Spring MVC web application and there is a param mandatoryParam let's say which has to be present in all the requests to the web application.
Now I want to make that p...
Yvette asked 15/7, 2014 at 13:4
3
Solved
i need to send an HTTP request, I can do that but my API in Backendless requires application-id and secret-key in HTTP Request Header. Can you help how to add it into my code? Thanks
let urlString...
Parette asked 2/4, 2016 at 10:55
2
Solved
This controller
@GetMapping("temp")
public String temp(@RequestParam(value = "foo") int foo,
@RequestParam(value = "bar") Map<String, String> bar) {
return "Hello";
}
Produces the follow...
Drive asked 22/12, 2017 at 22:45
2
Solved
I have a function to call my Web API. It works well if TestCallingRemotely is set to [AllowAnonymous].
var httpWebRequest = (HttpWebRequest)WebRequest.Create(
"http://localhost/api/services/myApp...
Khanna asked 21/11, 2017 at 9:34
10
Solved
What are the differences between the getAttribute() and the getParameter() methods in HttpServletRequest?
Romano asked 9/3, 2011 at 9:33
2
Solved
I tried the last version of JavaServer Faces 2.2 (Mojarra 2.2.4)
and noticed changing my query string in this unwanted way:
page.jsf?jftfdi=&jffi=
instead of
page.jsf
I've found that it ...
Stellite asked 8/10, 2013 at 18:21
3
Solved
I am using this code to post an image file to my controller but I always get a null value for the file body part.
@RequestMapping(value = "/updateprofile", method = RequestMethod.POST)
public @Res...
Starstudded asked 14/3, 2013 at 11:16
2
Solved
I have parameters from the client that are being sent such as
ids[] = 11
ids[] = 12
ids[] = 21
On the server side, I have a Spring controller with the following method:
@RequestMapping("/delete...
Evonneevonymus asked 14/1, 2013 at 19:5
1
Solved
How do you format the incoming @RequestParam using annotations? The form is sending the date in MM/DD/YYYY format and the controller is not picking it up as a valid Date.
@RequestMapping(par...
Psi asked 15/4, 2015 at 17:40
4
Solved
Using HTTP dev client with Post request and Content-Type application/x-www-form-urlencoded
1) Only @RequestBody
URL: localhost:8080/SpringMVC/welcome
Body: name=abc
@RequestMapping(method = Request...
Strenta asked 19/10, 2013 at 16:56
1
Solved
HTTPServletRequest req, has a method getParameterMap() but, the values return a String[] instead of String, for post data as
name=Marry&lastName=John&Age=20.
I see in the post data it...
Bitterroot asked 1/1, 2015 at 15:36
1 Next >
© 2022 - 2024 — McMap. All rights reserved.