name = name.substring(PREFIX_RESOURCE.length());
if (name.length() == 0 || name.charAt(0) != '/') {
String uri = request.getContextPath() + "/" + request.getServletPath();
name = NetUtils.absolutize(uri, name);
}
return renderResponse.encodeURL(name);
} else if (name.startsWith(PREFIX_ACTION)) {
url = renderResponse.createActionURL();
name = name.substring(PREFIX_ACTION.length());
if (name.length() > 0 && name.charAt(0) == '/') {
name = name.substring(1);