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

How to programmatically send POST request to JSF page without using HTML form?

I have very simple JSF bean like shown below: import org.jboss.seam.annotations.Name; @Name(Sample.NAME) public class Sample { public static final String NAME="df"; private String text = "text-test"; public void sampleM(){ …
pWoz
  • 1,649
  • 3
  • 20
  • 30
7
votes
1 answer

Set request character encoding of JSF input submitted values to UTF-8 in GlassFish

I have a problem with the values inserted in all my fields. Some characters are not encoded in the right way. E.g. if I put ciò in the input field I get ciò. How can I allow a user to insert text with those characters and save them…
7
votes
1 answer

Passing multiple request parameters with same name from table rows

I have a table with checkboxes that the user can check and delete that row in the table. I have everything working, but if the user checks two boxes, it only retrieves the first one on the table.
Mr Man
  • 1,498
  • 10
  • 33
  • 54
7
votes
2 answers

How can I test if a given request parameter is present using Struts tags?

Some pages can receive a certain request parameter called "P1": page.do?P1=value1 Right now a scriptlet is testing the existence of the request parameter, and if P1 is "value1" some information is rendered on the page . Instead of using a scriptlet…
Andrei Ciobanu
  • 12,500
  • 24
  • 85
  • 118
7
votes
1 answer

@ManagedProperty with request parameter not set in a @Named bean

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 class ActivationBean implements Serializable { …
Milkmaid
  • 1,659
  • 4
  • 26
  • 39
7
votes
3 answers

Set request character encoding of JSF input submitted values to UTF-8

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 and I'm using JBoss AS 7. I've already specified the…
7
votes
1 answer

Depedency inject request parameter with CDI and JSF2

When using CDI and JSF2 How can a HTTP request parameter be injected into a bean?
Karl Kildén
  • 2,415
  • 22
  • 34
6
votes
1 answer

How to pass GET parameters to url using Flask Request

I am aware of how to get the request parameters from a url using Flask Request: request.args.get(''). Indeed, that's the only thing I can find when searching for the title question: How do you get a query string on Flask? How to pass a URL…
mas
  • 1,155
  • 1
  • 11
  • 28
6
votes
2 answers

Web API Authorization via HttpWebRequest

I have a function to call my Web API. It works well if TestCallingRemotely is set to [AllowAnonymous]. var httpWebRequest = (HttpWebRequest)WebRequest.Create( …
6
votes
2 answers

How to disable jftfdi jffi query params in JSF

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 is the new JSF 2.2 feature. But these query params(jftfdi,…
gry
  • 73
  • 5
5
votes
3 answers

Query Parameter is not getting matched when using WireMock

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 …
monty
  • 108
  • 1
  • 2
  • 7
5
votes
0 answers

how to document swagger query parameter with json object input

How do I define a JSON object value for a request parameter that is in: query (not in: body)? Example below: paths: /schedules: get: summary: Gets the list of schedules description: | The schedules endpoint returns…
paragbaxi
  • 3,965
  • 8
  • 44
  • 58
5
votes
1 answer

jQuery - AJAX - Get Requested Parameters in success function

Is it possible to get the requested parameters in the success (callback) function? For example, function handleSubmitClick(evt) { evt.preventDefault(); var setupOptions = { success: loadSearch, type: "POST", dataType:…
James
  • 2,876
  • 18
  • 72
  • 116
4
votes
3 answers

Construct a URL with Request Parameters in Java

I've a servlet which is accessed through a URL and that URL has some request parameters in it. Now I need to redirect the user to a different page (from servlet), but also append the request parameters that I got from the request. This is what I'm…
Apps
  • 3,284
  • 8
  • 48
  • 75
4
votes
1 answer

Spring - Handling null values in Request Parameters

In Spring (4.3.9): A Request param sent from client as null to server, the null object is getting treated as string null in the request when obtained via request-param like: @RequestParam(value = key, required = false) Integer key As for as the…
Mohan Krishnan
  • 353
  • 3
  • 16
1
2
3
18 19