java读取地址栏参数(id=123&name=xiaoxiao)
2012-03-07 11:54
375 查看
String string = "id=9586&err=成功&src=1393904****&msg=你好吗&dst=&time=200505241713" ;//地址
String param = "src";//参数
String re = string.split(param)[1].substring(1, string.split(param)[1].indexOf("&"));
System.err.println(re);//re=1393904****
String param = "src";//参数
String re = string.split(param)[1].substring(1, string.split(param)[1].indexOf("&"));
System.err.println(re);//re=1393904****
相关文章推荐
- JAVA开发(3)- 读取表单参数Get&Post
- Mybatis找不到参数错误:There is no getter for property named 'categoryId' in 'class java.lang.Integer'。
- 将系统的内部类:HttpValueCollection 移到自己的系统中,使其能方便的解析id=1&name=张三&sex=男这样的字符串参数 querystring
- 内存变量 Export / Import ...To Memory ID 'ID_Name' / From Memory ID 'ID_Name' 导出/读取的使用
- java 通过流读取request请求参数
- java读取和设置配置文件中的属性参数
- 转-IE6 & IE7 动态创建 iframe 读取不到 contentWindow.name 属性解决方案
- 关于"Java中方法参数的传递方式"的探讨
- java 读取xml文件并输出
- hue 读取hive metastore错误 NameError: global name '_' is not defined
- Servlet 读取 HTML 中同一 NAME 属性值的多个参数
- document.getElementById("idName")用js方法获取元素,则设定风格属性的方法为
- No sources that matches the given name (at 'layout_toLeftOf' with value '@id/
- java地址栏传参数有长度限制
- jmeter初接触-java请求&参数设置
- java读取和设置配置文件中的属性参数
- c# 读取xml文件 "分析 EntityName 时出错"的解决方案
- 关于地址传参,&被转义为&,汉字被转义为编码,导致参数读取不了的解决方案
- java.lang.IllegalArgumentException: column '_id' does not exist
- 【原创】Java JNI 参数