UrlEncode the String [duplicate]
Possible Duplicate:
How to URL-encode a String with JSTL?
I am trying to url encode the string..
<c:out value="${filter开发者_开发知识库.value.display}"/>
I tried this way
<%@ taglib prefix="encodeft" uri="http://java.net" %>
<c:out value="${encodeft:URLEncoder.urlEncode(filter.value).display}"/>
And now I got this error as
The absolute uri: http://java.net cannot be resolved in either web.xml or the jar files deployed with this application
Any suggestions??
Maybe
<c:out value="${filter.urlEncode(filter.value).display}"/>?
but I am assuming both that value
is a property of filter
and that urlEncode(String)
is a method of filter
, as suggested by your code.
精彩评论