title: How to replace a string in jsp
body: <p>I have a string url like <code>http://google.com</code>. I need to remove <code>'http://'</code> from the URL. I have tried the method <code>.replace("http://","")</code>, but it is not working.</p>
  
  <pre><code>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
  </code></pre>