开发者

UrlEncode the String [duplicate]

This question already has answers here: Closed 11 years ago.

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜