`

get parameter of request

    博客分类:
  • Java
 
阅读更多
Enumeration<String> paramEnum =	request.getParameterNames();
while(paramEnum.hasMoreElements())
{
	String paramName = paramEnum.nextElement();
	String paramValue = request.getParameter(paramName);
	System.out.println(paramName + "=" + paramValue);
}
response.setContentType("text/html; charset=GBK");
PrintWriter pw = response.getWriter();
pw.write("submit success");
pw.close();

分享到:
评论

相关推荐

    request.getParameter() 和request.getAttribute() 区别

    request.getParameter() 和request.getAttribute() 区别

    java web 修改request携带的参数信息

    一个非常棒的程序,用于修改request携带的参数信息。使用了filter等技术。

    filter对request请求拦截,对请求参数进行修改

    对request请求进行拦截,对请求参数修改。常用于前台提交表单参数关键字的过滤。此工具可以对参数拦截并转义后提交到对应的处理类。 除了添加两个JsFilter.java和GetHttpServletRequestWrapper.java之外,需要在web....

    servlet2.4doc

    Called by the server (via the service method) to allow a servlet to handle a GET request. doHead(HttpServletRequest, HttpServletResponse) - Method in class javax.servlet.http.HttpServlet Receives an...

    基于JSP的Web聊天室的设计与实现

    基于JSP的Web聊天室的设计与实现 String email="";... //get parameter try{ Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); Connection c=DriverManager.getConnection(url);//link database

    JSP Simple Examples

    Whenever an http client sends a request, it sends the request in the form of get or post method or any other HttpRequest methhods. It can also sends the headers with it. Specific request headers in ...

    taobaoopensdk:open.taobao.com SDK Go语言实现版本

    TAOBAO OPEN SDK 安装 下载并安装: $ go get -u github.com/mimicode/taobaoopensdk 将其导入您的代码中: ...getRequest.AddParameter("num_iids", "583866215568,578307080718") getRequest.AddPa

    STM8L15X_ADC。C

    This parameter can be a value of @ref ADC Channel TypeDef or a combination of values as follows: 1st combination : channels from ADC Channel 0 to ADC Channel 7 2nd combination : channels from ADC ...

    数位板压力测试

    The availability of drivers that support the features of the specification will simplify the process of developing Windows appli¬cation programs that in-corporate absolute coordinate input, and ...

    acpi控制笔记本风扇转速

    Ported the -g option (get local ACPI tables) to the new ACPICA Table Manager to restore original behavior. ---------------------------------------- 27 September 2006. Summary of changes for version ...

    详解Nginx中的重定向功能

    $arg_PARAMETER #这个变量包含GET请求中,如果有变量PARAMETER时的值。 $args #这个变量等于请求行中(GET请求)的参数,例如foo=123&bar=blahblah; $binary_remote_addr #二进制的客户地址。 $body_bytes_sent #响应...

    top25-parameter:对于基础研究,可以在自动化工具或手动侦查中使用的前25个漏洞参数。 :shield::crossed_swords::mage:

    Server-Side Request Forgery (SSRF) Local File Inclusion (LFI) SQL Injection (SQLi) Remote Code Execution (RCE) [for GET and POST methods] Open Redirect @trbughunters @openbugbounty的前25个跨站点脚本...

    sqlmap (懂的入)

    * It is possible to provide the name of the only parameter(s) that you want to perform tests and use for injection on, being them GET, POST, Cookie parameters; * SQL injection testing and detection...

    STG (SNMP Traffic Grapher)

    Two SNMP Object IDs (SNMP ID of the parameter you want to see): OID e.g 1.3.6.1.2.1.2.2.1.10.1 OID1 e.g 1.3.6.1.2.1.2.2.1.16.1 Every or any of them could be gauge value - some SNMP ...

    计算机网络第六版答案

    Part of protocol has always been the acknowledgment of the hierarchical standing of all present. Protocol rules are based on the principles of civility. Standards are important for protocols so that...

    asp.net mvc

    To update the custom controller factories to support ASP.NET MVC 2, change the method signature or signatures to match the new signatures, and use the request context parameter instead of the ...

    getAttribute和getParameter区别.

    2.parameter得到的是string;attribute得到的是object 3.request.getParameter()方法传递的数据,会从Web客户端传到Web服务器端,代表HTTP请求数据;request.setAttribute()和getAttribute()方法传递的数据只会存在...

    simple-message:消息处理程序

    简单消息 简单的消息处理程序...{ type : 'common.missing_required_parameter' , code : 400 , message : 'The request is missing a required parameter.'}message.load(key, value, [回调]) 通过 json 对象加载 var

    WinCE下的触控屏驱动程序源代码

    Call TouchPanelGetDeviceCaps to request the number of sampling points. For every calibration point, perform the following steps: Call TouchPanelGetDeviceCaps to get a calibration coordinate. Draw a ...

    王小平版遗传算法的光盘源代码

    Note: since the random seed value is not a population parameter but it can be specified in the population parameters file, if there are multiple populations, and no seed value was specified on the ...

Global site tag (gtag.js) - Google Analytics