Here is my jsp file:
<%@ page contentType="text/plain" %> <%@ page pageEncoding="UTF-8"%><%@ taglib uri='http://java.sun.com/jsp/jstl/core' prefix='c'%> <%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %> <c:out value="${fn:replace(pageContext.request.requestURL, pageContext.request.requestURI, '')}" /><c:out value="${model.uri}" />
I get an error
The method replace(String, String, String) in the type Functions is not applicable for the arguments (StringBuffer, String, String)
I tried pageContext.request.requestURL.toString (), but toString () is apparently not a method. Any suggestions?
source share