问题标签 [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.
html - 从 JSP 中的链接获取价值
我在 jsp 页面中有锚链接,如下<td>
表中所示。
这里cnt
里面的 scriplet 是一个整数。标签位于<form>
和action
属性中,<form>
指向正确的下一页。
我必须在下一页中取该整数的值。
我正在使用如下所示,
这里nullIntconv
将转换string
为integer
.
但我没有得到我选择的价值。它总是给我0。
请建议。
java - 弹簧参数不起作用
使用 springparams
的注释不起作用。
我正在使用此函数获取 put 值,但它显示 400 Bad Request。有什么帮助吗?
java - MultipartFile 每次都返回 null
我正在使用此代码将图像文件发布到我的控制器,但我总是得到文件正文部分的空值。
有人能帮忙吗?
java - 如何在 Java 中获取非英语单词?
我正在将主题名称中的 இயற்பியல் 从 Javascript 传递到 Java,同时在 javascript 中使用警报。
இயற்பியல் 显示,而如果我使用
..它不回来了。
java - Optimal way to construct an instance from an http request parameters
In my project i have:
a servlet that handles http requests with users profile info as parameters, i.e (userName = "Bob" , password = "ugaBaga", address = "blabla"... )
a User class that represents the user info. getters + setters : getName(), setName(String username)....
my question is , is there an easy way to create a new user instance from the httpRequest parameters?
something like :
User newUser = createUserFromParams (new User(), httpRequestParameters);
(without the need to write : user.setName(parameters.getParameter("userName")) for each of my 30~ fields)
p.s - I'm not really sending a password, i couldn't think of a fieldname. the passwords are being sent by sms's ;)
thanks in advance!
java - Spring MVC 默认值不起作用
defaultValue="N/A" 不起作用,因为我没有在名称字段中提供任何文本,所以它在数据库中存储 null 而不是“N/A”?
asp-classic - Retrieving parameters from request ASP Classic 3.0
Is there a problem or difference between retrieving the request parameter as follows:
Instead of:
Request.Form("<ParamName>")
or
Request.QueryString("<ParamName>")
?
Thanks in advance!
java - 如何使用刷新标头保持下拉列表选择的选项与下一个请求相同?
在使用自动刷新我的网页时
当我正确调用手动获取时,它是第一次获取下拉列表选择的 URL。但是在刷新 10 秒后,它会将下拉列表选择的值设为空(我没有更改列表中的选项.. 它与第一次选择的选项相同)。如何解决这个问题?
请帮我。
我从 stackoverflow 得到了一个答案
但是在哪里使用这个ursel呢?在我的 JSP 代码中?
10秒后刷新网页时,servlet或JSP如何知道下拉列表中有ursel是参数?
java - 刷新 JSP 页面后在 HTML 选择元素中保留所选值
我有一个带有下拉框的 JSP。我选择一个选项并提交该选项。所以现在我得到了存储在该选定选项的数据库中的信息。现在我通过在 servlet 中设置为自动刷新 JSP(HTML 页面)
//input.jsp代码
当我第一次选择选项说 abc 并手动提交时,它给了我正确的结果并显示了数据库中的详细信息。10 秒后,它会使用相同的选项abc自动刷新(我不想更改选项),但不显示值。它正在采取
请帮我。在result.jsp我正在使用
spring - Spring @PathVariable 创建自定义对象
我的应用程序中有一个具有组合ID的实体。
在我的控制器中,我使用@PathVariable
以下方式获取此实体:
是否有可能使用类似的组件WebArgumentResolver
使我的方法以这种方式工作:
具有如下 URL:/application/2013/06