问题标签 [http-request-parameters]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
spring-integration - 如何通过spring el在spring集成http-inbound-gateway中检索请求参数?
我有一个 http-inbound-gateway,我想检索一个请求参数来填充入站通道作为有效负载。我发现http-inbound-gateway 支持spring 表达式,所以我可以使用#requestParams 来检索请求参数。似乎 #requestParams 等效于返回 Map 的 request.getParameters('key') 但我希望调用返回 String 的 request.getParameter('key') 。目前我必须使用 new String(#requestParams['key']) 来解决这个问题。有没有更好的方法来做到这一点?
jsf - 将 JSF 输入提交值的请求字符编码设置为 UTF-8
我遇到了与在 GlassFish 中将 JSF 输入提交值的请求字符编码设置为 UTF-8相同的问题,提交的值以Mojibake的形式到达。但是,答案针对的是 GlassFish,我使用的是 JBoss AS 7。
我已经指定了使用 UTF-8 的 JDBC 连接 URL:
在我的 JSF 页面顶部:
如何在 JBoss AS 7 中解决同样的问题?或者更好,以更通用的方式使其适用于所有服务器?
jsf - Retaining GET request query string parameters on JSF form submit
I have 3 pages:
main.xhtml
agreement.xhtml
generated.xhtml
The agreement.xhtml
needs two parameters to load correctly: serviceId
and site
. So, a normal url looks like this: /app/agreement.xhtml?site=US&serviceId=AABBCC
.
I have this button on agreement.xhtml
The @RequestScoped
bean #{agreement}
has this method:
I need that, on click, the generateMethod()
method is executed, and after it's done, the user is redirected to the generated.xhtml
page. What's happening is that, on click, the page browser sends the user to /app/agreement.xhtml
and, since it's not sending the parameters site
and serviceId
, it crashes.
I tried making the generateMethod()
return a "generated?faces-redirect=true"
, but still nothing. Any ideas?
java - 如果标记,我如何在struts2中使用请求参数
我有一个这样的链接:http://localhost:8080/ESA/login.jsp?login=failed
在上面的链接末尾设置一个带有名称login
和值的参数failed
。
我如何在带有 struts if 标记的 jsp 页面中使用此参数。我使用以下代码,但它不起作用。
jsf-2 - 如何仅将部分请求参数包含到 url 中?
我通过h:link
这样的传递2个参数:
在这种情况下,两个参数都显示在 url 中。我怎样才能实现只有参数a
而不b
显示在 url 中?谢谢
oracle - 在 apex url 中隐藏请求参数
有什么方法可以在 apex URL 中隐藏请求参数?
例如,我有以下带有请求参数的 URL TYPE
。
https://mydomain.me/apex/f?p=115:28:18817528642526:TYPE:NO::P28_ROOM_ID:103
我不需要向最终用户透露这个请求参数。我怎样才能对最终用户隐藏这个?
asp.net-mvc-4 - 在其视图中访问子操作参数
和索引视图就像
BControler 就像
这个索引部分视图就像
在这里,当我Request.Params["HasEditPermission"]
在局部视图中执行此操作时,我得到 null .. 但是如果我将HasEditPermission
其作为参数包含在我的Index
操作中,BController
那么我会得到值..
我认为,我没有从中得到它,Request.Params
因为实际请求是AController
Index
不包含此参数的操作。
但我想知道它如何将值绑定到 BController 的 Index 操作(假设我有它)的 HasEditPermission 参数?
请有人告诉我如何直接在视图中访问它?(我知道在索引中使用 ViewBag 是一种选择)
c++ - 在 C++ 中修改 Google Drive File List Request 参数
我发现自己用 C++ 编写代码以将 Google Drive 与桌面应用程序集成,我需要修改q
文件列表请求的参数。有没有办法使用 Drive API 和函数等来做到这一点List(), Fetch()
?还是我必须硬着头皮直接通过 GET 或 POST 发出请求?
谢谢!
java - 请求参数映射在 Mozilla 中变空
我们的 Web 应用程序使用 Java spring mvc 框架和 apache tomcat 6.0.32,并且在 Mozilla Firefox 23.0.1 中有一个 POST 请求,其请求参数映射为空,而在 Chrome 28.0 中一切正常。以下是随附的屏幕截图。任何帮助都会非常有帮助。第一个屏幕截图是 Chrome。第二个屏幕截图是 Mozilla 第三个屏幕截图是 Mozilla Post。
spring - Spring @RequestParam 映射布尔基于 1 或 0 而不是 true 或 false
为什么 Spring 3.2 仅基于 requestparam 为 "0" 或 "1" 映射我的布尔值?
"true"
只有当请求参数"?preview=1"
是奇怪的时候才会预览
我希望它是"?preview=true"
。我怎么做?