title: How to find the URL of a SharePoint web application given the url of a Site within that
body: <p>I need to find the URL of the web application of a given Site (say I have an url <a href="http://code/sites/java">http://code/sites/java</a>. Given the url of this site collection i need the URL of the web app that hosts this site collection. In this case it will be <a href="http://code">http://code</a>. ) Any input will be appreciated.</p>