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
1 answer

Required request parameter 'formulaId' for method parameter type String is not present - Thymeleaf, SpringBoot

I'm having an issue where I have a form that will save all updates to a formula. This loads fine and everything works except for when trying to delete an ingredient within a list that is in the updateFormula object. When I pass my two…
Stone
  • 21
  • 2
  • 5
0
votes
0 answers

Thymeleaf Java : How to send an input field from the html page to the controller's request parameter

I want update the account.client for a given account. But i have an error when i submit the "account_update.html" form. In fact, in the "account_update.html", the user have to update the client for the given account using the…
SOUE77
  • 39
  • 6
0
votes
3 answers

How do I handle an unknown number of RequestParams in Spring Boot REST?

I have a REST api in Spring Boot: @GetMapping("/test") public MyClass getData() { return something; } This endpoint can be requested with up to 10 RequestParams. I know of course all of the 10 possible RequestParams, however client can chose…
TheStranger
  • 1,387
  • 1
  • 13
  • 35
0
votes
1 answer

How to retrieve url params from frontend to backend and print them in console?

I am trying insert a text in a input and submit it so I can get it in backend. This is how it looks in the frontend:

0
votes
3 answers

How do you represent all of the parameters (names & values) contained in a HttpServletRequest object as a single string?

Is there some way to get all of the parameters contained in a HttpServletRequest object into a single String?
Olean
  • 1
0
votes
1 answer

How to migrate this mutlipart file upload to Spring Boot 2.4?

With Spring Boot 2.3 I was using the following Kotlin code val mvcResultImage = this.mockMvc!!.perform(MockMvcRequestBuilders.multipart("/somepath) .file("files[]", imageFile.getBytes()) .characterEncoding("UTF-8")) …
0
votes
2 answers

request url with id between two expressions

I'm trying to call a url with an ID between /. The url looks like this: http://localhost:8080/chargeback/v1/dispute/22/events and I need to recover that value 22 in the sysout from controller. I know thats sounds very easy, but in my project i'm…
0
votes
1 answer

Request parameter is null in servlet

So I'm trying to do a project for a college assignment and I cannot for the life of me getting the login servlet to work. This code was given to us by our lecturer and always seems to work fine for him so when I created the servlet in Netbeans 11.3…
user14986000
0
votes
2 answers

Blazor HTTPRequestMessage with several named parameters

Using the most recent version of VS 2019 Community with SDK 5.0.101 I have created an Editform and I can see on the button submit action that all the properties of the model have valid values. I created the action method of the onvalidsubmit event …
0
votes
1 answer

Required String Parameter is not present?

My Spring Boot project has a form at /albums/add which looks like this: I'm trying to deal with that request in the controller…
Liam
  • 109
  • 3
  • 11
0
votes
1 answer

Freemarker pagination with Search parameter

I have working pagination with Fremarker. Here is pager makros: <#macro pager url page> <#if page.getTotalPages() gt 7> <#assign totalPages = page.getTotalPages() pageNumber = page.getNumber() + 1 head =…
catch23
  • 17,519
  • 42
  • 144
  • 217
0
votes
1 answer

Spring Data JPA returning wrong results

I am testing Spring-Data-JPA with Spring-Boot, using hibernate-core 5.4.2.Final version. For example, I have a Users table containing address and other columns. My repository interface for this table is as below. public interface UsersRepository…
0
votes
1 answer

EnumType @RequestParam not working on spring

So guys I don't what is going on, I need to add an entry to db table. I created an endpoint that needs as parameter an EnumType called ActionStatisticType but Spring can not map it. This is the way I'm doing the request in angular: …
0
votes
2 answers

How to pass a list of values, dynamically, as multiple Python requests parameters?

I'm new to Python. Trying to automate some painful API calls using the Python requests module. Getting pretty close, but can't figure out how to pass lists of timestamps as request parameters Example: Generate list of lastModified timestamps import…
SeaDude
  • 3,725
  • 6
  • 31
  • 68
0
votes
1 answer

How to make a Thymeleaf url expression and bind it to a @RequestParam annotation

My form is based on Thymeleaf, I am not using tables because it has many fields. In the form I have 3 buttons, one is a submit and the others are links. With a link button I want to make a query using a parameter that sends a string to the…