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

Spring boot REST MVC map request parameter with different field name to object

Assume that I have want to capture a bunch of request parameters as one object like this: @GetMapping("/") public List filterItems(@Valid Filter filter){} and the Filter class looks like this: class Filter { public String status; …
danial
  • 4,058
  • 2
  • 32
  • 39
4
votes
1 answer

Axios: Send null value as param in request

Is there a possibility to pass a parameter with the value of null to axios? It seems that null values are just ignored...
F.M.F.
  • 1,929
  • 3
  • 23
  • 42
4
votes
2 answers

request.getParameter don't have null values when they are expected

I found this issue so perplexing (but also interesting) that I'd like to ask people here for insights. I've been teaching myself JSP and associated technologies. What I'm tring to do is to retrieve parameters from a JSP to a servlet, then use them…
Hiroki
  • 3,893
  • 13
  • 51
  • 90
4
votes
2 answers

Restoring request parameters in @ViewScoped bean after session expires

I have a page that has the setup as below with url like my.page.com/table.xhtml?id=123: +----------------------------------------------+ |Meta information | |----------------------------------------------| | …
3
votes
1 answer

How to convert multiple values to enum in RequestParm?

I have this enum declaration below public enum FamilyType { FIRSTNAME("firstname"), LASTNAME("lastname"); private final String type; FamilyType(String type) { this.type = type; } public static FamilyType…
Catalina
  • 663
  • 5
  • 20
3
votes
2 answers

Sending % through @RequestParam in Spring

How to send % using @RequestParam in Spring ? I'm calling the API by this URL : http://localhost:8080/springmvc/test?param1=% But I'm not able to get the % in the API. When I'm debugging, I'm getting param1 = null but I want to get the real…
sevenfold
  • 101
  • 8
3
votes
3 answers

multiple requestparam in springboot pageable

i know that this question may be duplicated but i tried a lot with no success I need to make multiple RequestParam in spring boot rest controller as following : @GetMapping("/prd-products/test") @Timed public ResponseEntity>…
3
votes
4 answers

@RequestParam not mapping entire string

I have a Get endpoint that accepts a query string as request param . The issue with the endpoint it that the request param string can contain characters like ?,/ etc which is causing issues.Is there any way to map a string which contains ?,/ etc to…
3
votes
1 answer

Make Spring java object request parameter required

I have the following controller code @GetMapping("/users") public ResponseEntity getUsers(Filter filter) { return ResponseEntity.ok(userService.findUsers(filter)); } Filter.java: public class Filter { private Integer page; …
Archie
  • 962
  • 2
  • 9
  • 20
3
votes
2 answers

How to access url parameters in struts2

I am working on a struts2 project. I have created url with in my project and have passed parameters using tags. My question is how do i read the parameter in the actions? also if do the same would i be able to see the parameters as query string. i…
SonOfTheEARTh
  • 1,858
  • 5
  • 21
  • 23
3
votes
2 answers

How to keep request parameters after redirect?

I'm trying to resolve a bug when I send a form with an empty input. This is my methode: @RequestMapping(value = "/modifier.html", method = RequestMethod.POST) public String modifier(ModelMap map, @ModelAttribute("FormObject") FormObject formObject,…
Chinovski
  • 497
  • 3
  • 7
  • 18
3
votes
2 answers

Struts parameters not accessible in tag

I have a .jsp page that does the following check to see if it should display an error message:
The error parameter comes from the request…
3
votes
1 answer

Exception Handling in Spring boot

I have a spring-boot application which has the following end point: @RequestMapping("/my-end-point") public MyCustomObject handleProduct( @RequestParam(name = "productId") String productId, @RequestParam(name = "maxVersions", defaultValue = "1")…
Nik
  • 5,515
  • 14
  • 49
  • 75
3
votes
3 answers

Weld exception when value for producer annotation is defined

I tried to implement solution from another SO question: https://stackoverflow.com/a/10059245/1943765 but it is not working in all cases. When I put this code in CDI bean (bean code is shown on bottom): @Inject @HttpParam private String code;…
Andrija
  • 367
  • 3
  • 14
3
votes
0 answers

Remove Spring WebFlow "execution" request parameter from JSF forms

I have a Spring 4.1.7 + Spring WebFlow 2.4.1 + JSF 2.0 project. I would like to get rid of the request parameter that is added by Spring WebFlow, i.e. execution=e15s1. I want to get rid of this during transition of the view state as…
1 2
3
18 19