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

Multiple request params with Locale 'language' param

I'm developing Spring MVC application. I have several locale languages and when I change them on JSP pages which require their own request params, I get an exception like: Required int parameter 'remedyId' is not present The link I used to change…
Zarial
  • 283
  • 3
  • 11
2
votes
0 answers

How to grab POST data from external site

An external site redirect the user to my platform passing some POST data. How can grab this information from my Bean and display its in a JSF page? I've try a lot of solution but no one works. The following is a JSF testing page.
2
votes
1 answer

how can i use request parameter in struts2 if tag

i have a link like this :http://localhost:8080/ESA/login.jsp?login=failed in end of above link a set a parameter with name login and value failed. how i can use this parameter in jsp page with struts if tag. I use following code but it don't work. …
Rasoul Taheri
  • 802
  • 3
  • 16
  • 32
2
votes
4 answers

Spring MVC default value not working

@RequestMapping(value = "/Fin_AddBankAccount", method = RequestMethod.POST) public @ResponseBody JsonResponse addCoaCategory( @RequestParam(value="code", required=true) long code, @RequestParam(value="startFrom", required=true) long…
Shahid Ghafoor
  • 2,991
  • 17
  • 68
  • 123
2
votes
4 answers

getting value from a link in JSP

I have anchor-link in jsp page as shown below inside the in table. <%=(cnt)%> here cnt inside scriplet is an integer. The tags are in the
Sasi Kumar M
  • 2,440
  • 1
  • 23
  • 23
2
votes
2 answers

RequestParameter encoded string

I have a controller with a RequestParam as a String, which is BASE64 encoded, and it includes many times the "+" character (something like "domain.com/request?code=sdfesdfd+23fewrfr3"). When I try to print the 'code' value whitin the controller…
2
votes
1 answer

java.lang.UnsupportedOperationException: Cannot set ServletRequest Parameter

I am working on a JSF 1.1 project. JSP:
V.Rohan
  • 945
  • 2
  • 14
  • 27
2
votes
3 answers

Passing a URL parameter from JSP to Servlet

I'm trying to pass a URL parameter from a JSP to a Sevlet. My URL is /portal/faces/student.jsp?owner_id=1030303i In my JSP i added this
2
votes
1 answer

HTTP request parameters are not available by request.getAttribute()

I am sending an url parameter to servlet using the following jQuery piece: $.getJSON("http://localhost:8080/JsoupPrj/JasonGen?url=" + url, function(data) { $("#content").html(data); }); On the server side, the servlet gets the parameter, for…
user1595858
  • 3,700
  • 15
  • 66
  • 109
2
votes
1 answer

How to send special characters in request to servlets

I am using a jQuery ajax command, which has the following data: $.ajax({ type:"POST", ... data:"e=f_s&es="+JSON.stringify(email)+"&fr="+str ... }) Where (email) can contain special character, for example it can be a…
ccot
  • 1,875
  • 3
  • 36
  • 54
1
vote
1 answer

Javascript change url parameter before putting it in history

I'm using the datatables JQuery plugin. I use it with AJAX and pagination (server-side). Each row contains a link to a detailed view of that record. When clicking in that link and then on the back button I want to return to the previous page. (Note:…
beginner_
  • 7,230
  • 18
  • 70
  • 127
1
vote
1 answer

How do i get changed value of a single checkbox in requestparam and pass it to ModelAndView in spring boot?

html file: I want to get the value of changed state of checkbox in my controller.
1
vote
3 answers

Spring Boot non-required @RequestParam with String Data Type

Here is a example Controller : @GetMapping("/pt") public String getPt(@RequestParam(value = "one", required = false) String one) { if(one != null) { return "Not Null"; } else { return "Null"; } } So When I call the…
1
vote
0 answers

List of requestparams, combined to Map with enumkey and string value, Map

I am trying to combine multiple request parameters in a Map. I could do it, but we want to restrict keys to some names, hence we defined an enum. But the spring boot doesn't validate the Map. It just accepts, even if we send any key instead of the…
ashu
  • 579
  • 2
  • 6
  • 17
1
vote
1 answer

How to configure converter from LocalDateTime to LocalDate?

I have a table of restaurants and their menus. The creation and update of the dish is saved in LocalDateTime. I would like to search for the menu of the day, being able to enter a date without time and take the current date by default. The problem…