将http://192.168.xx.xx/model/listjobs.html?type=cevsa&user=forest做为参数传递
2014-08-15 14:27
543 查看
url = “http://192.168.xx.xx/model/listjobs.html?type=cevsa&user=forest”
<a href="model_calc.jsp?url=${url}">模型计算</a>
以上面的方式进行参数传递,因为url中有“&”,所以传递过去model_calc.jsp把"&"作为参数分割,接收了url和user两个参数
为了将url的值整体作为一个参数传递接收,以下面的方式进行传递
<a href="model_calc.jsp?url=${fn:replace(url,'&','@replace')}">模型计算</a>
在接收参数时,再将“@replace”替换为“&”;
<a href="model_calc.jsp?url=${url}">模型计算</a>
以上面的方式进行参数传递,因为url中有“&”,所以传递过去model_calc.jsp把"&"作为参数分割,接收了url和user两个参数
为了将url的值整体作为一个参数传递接收,以下面的方式进行传递
<a href="model_calc.jsp?url=${fn:replace(url,'&','@replace')}">模型计算</a>
在接收参数时,再将“@replace”替换为“&”;
相关文章推荐
- 项目背景: 1、接口URL:http://192.168.xx.xx:8080/mserver/rest/ms 2、接口参数:data=xxxxx&key=xxxxx,数据是加密的 3、请求方式
- HTML链接上把当前的URL做为参数传递时,注意要对URL进行encode,在JS中我们这样实现
- jquery.get的参数中文自动编码与header(\'Content-type: text/html; charset=gbk\');乱码问题
- html 传递url参数特殊符号 & 传递网址
- S动态添加与删除select中的Option对象 2009年09月23日 15:26 <html> <head> <meta http-equiv="Content-Type" content="t
- 【HTML】明明加了<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />却还是乱码的可能原因
- php通过$_SERVER['HTTP_USER_AGENT']获取浏览器相关参数(转)
- Windows Phone 7 MVVM模式数据绑定和传递参数 from:http://www.cnblogs.com/linzheng/archive/2011/03/27/1997086.html
- struts.xml 使用 type="redirect" 和type="redirectaction" 传递参数
- <%@page contentType="text/html;charset=gbk"%>与<meta http-equiv="Content-Type" content="text/html; ch
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- 验证参数传递引发的Java编译错误“No enclosing instance of type XXX is accessible" 及匿名内部类
- thinkphp中html:list标签传递多个参数实例
- Could not load type ‘System.ServiceModel.Activation.HttpModule’ from&
- HTTP Status 500 - tag 'select', field 'list', name 'vehicle.vehicleType.id': The requested list key
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />解释
- struts.xml 使用 type="redirect" 和type="redirectaction" 传递参数
- startActivityforResult传递List<Object>参数错误问题
- Could not load type ‘System.ServiceModel.Activation.HttpModule’ from&
- struts2.0 struts.xml type="redirect" 传递参数问题