【发布时间】:2011-06-24 13:42:49
【问题描述】:
如果我有一个等于 url 的字符串“输出”:
${output} = "/testing/method/thing.do?foo=testing&bar=foo"
在jsp中,如何将该字符串转换为:
%2Ftesting%2Fmethod%2Fthing.do%3Ffoo%3Dtesting%26bar%3Dfoo
使用
<c:out value="${output}"/>
? 我需要以某种方式在 c:out 中使用 URLEncoder.encode(url)。
【问题讨论】: