我有一个像http://google.com
这样的字符串url。我需要从网址中删除'http://'
。我已经尝试了方法.replace("http://","")
,但它不起作用。如何替换jsp中的字符串
Web web = org.getWeb();
webUrl = web.getUrl();
out.println("webUrl :"+webUrl); // here it prints:: http://google.com
webUrl.replace("http://","");
out.println("webUrl :"+webUrl); // here also it prints:: http://google.com