http-request-parameters

PrimeFaces datatable.filter() and url parameter

蹲街弑〆低调 提交于 2019-12-13 18:17:51
问题 I have a .xhtml model with a primeface datatable in it. I call the page with an URL like this: http://localhost:8080/myproject/mypage.jsf?Id=51&startDate=04-05-2015&name=whatever The URL parameters are used to retrieve what will be displayed in the datatable, so it allow me to filter the content. I used URL parameter because this page is displayed when I select a row in another datable so I have to make a manual redirect to this page on the baking bean. However everytime I use one of

The method setRequestProperty(String, String) in the type URLConnection is not applicable for the arguments (String, ArrayList<String>)

拟墨画扇 提交于 2019-12-12 01:21:36
问题 I am trying to send multiple images to server but,so I am storing all the images in one arraylist,but after that when I need to send to server,it shows error near line ,,...................... conn.setRequestProperty("image", multimgss); error The method setRequestProperty(String, String) in the type URLConnection is not applicable for the arguments (String, ArrayList<String>).. MainActivity public int uploadFile(String sourceFileUri) { String fileName = sourceFileUri; /*String[] mimgs = null

JMeter get jdbc request data and send each with http post request in a spring service how-to

馋奶兔 提交于 2019-12-11 13:55:49
问题 I used jmeter recently and I try to get some data from a jdbc request and send them in a spring service with http request. Let me explain more specifically. I use this query: SELECT MEMBER_ID, PERSON_NAME, PERSON_SURNAME FROM MEMBER, PERSON WHERE CDT_MEMBER_ID = CDT_PERSON_ID From the above request the values inserted in these variables: id, name, surname, where i have define in "Variables names" field of JDBC request control panel. (in each variable returned 10 values, so i treat them as

Android App with ASP.NET WebAPi Server - send complex types

旧时模样 提交于 2019-12-11 03:07:14
问题 I have a Android App which is via Web Services connected with my ASP.NET WebApi Server. For sending requests I am using AsyncHttpClient and for passing parameters to the server I use RequestParams . Now I want to send a complex object that contains a list with other complex objects to my server, and there is the issue. How am I supposed to do that? For simple types, it is pretty easy, since I just need to call parameter.add("paramname", paramvalue); multiple times on the same parameter name,

jQuery - AJAX - Get Requested Parameters in success function

那年仲夏 提交于 2019-12-10 15:39:22
问题 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: "json", url: "../search.x", error: handleError, timeout: 10000 }; $("#searchForm").ajaxSubmit(setupOptions); return false; } function loadSearch(data, statusText, xhr, $form) { // here is where I would like to get the HTTP request // parameters } Of course, I could store the

Spring @RequestParam Date Formatting [duplicate]

醉酒当歌 提交于 2019-12-10 15:26:13
问题 This question already has answers here : How to accept Date params in a GET request to Spring MVC Controller? (5 answers) Closed 4 years ago . How do you format the incoming @RequestParam using annotations? The form is sending the date in MM/DD/YYYY format and the controller is not picking it up as a valid Date . @RequestMapping(params="/updateDate") public @ResponseBody String updateDate(HttpServletRequest request , @RequestParam Integer productId , @RequestParam Date dateReceived) { // Code

how can i use request parameter in struts2 if tag

一笑奈何 提交于 2019-12-09 21:46:53
问题 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. <s:if test="%{#parameters.login='failed'}"> <div class="error"> <s:text name="user.login.failed"></s:text> </div> </s:if> 回答1: Try with <s:if test="%{#parameters.login[0]=='failed'}"> The two problems were in your code: The = sign is an assignment

Spring MVC default value not working

℡╲_俬逩灬. 提交于 2019-12-08 06:15:39
问题 @RequestMapping(value = "/Fin_AddBankAccount", method = RequestMethod.POST) public @ResponseBody JsonResponse addCoaCategory( @RequestParam(value="code", required=true) long code, @RequestParam(value="startFrom", required=true) long startFrom, @RequestParam(value="name", required=true, defaultValue="N/A") String name) { } defaultValue="N/A" not working , As I did not provide any text in name field , it store null in database instead of "N/A"? 回答1: What is the point of setting a default value

Passing multiple request parameters with same name from table rows

こ雲淡風輕ζ 提交于 2019-12-07 03:46:27
问题 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. <tr> <td><input type="checkbox" name="id" value="${user.id}" /></td> <td><c:out value="${user.name}" /></td> <td><c:out value="${user.email}" /></td> </tr> This is just an example of my HTML. Here is part of my servlet. String id = request.getParameter("id"); So, again, I can get the first value

Restoring request parameters in @ViewScoped bean after session expires

不想你离开。 提交于 2019-12-06 07:06:51
问题 I have a page that has the setup as below with url like my.page.com/table.xhtml?id=123 : +----------------------------------------------+ |Meta information | |----------------------------------------------| | Search Fields Submit btn | |----------------------------------------------| | | | | | Big p:dataTable | | with rowExpansion | | | |----------------------------------------------| | Pager | +----------------------------------------------+ id=123 is the request parameter that controls the