title: Which one to use absolute or relative path?
body: <p>I have one web application developed using Spring MVC.
  I have a jsp page where I am embedding the same application's page into iframe using an absolute path as below. I deploy the app in tomcat.</p>
  
  <p>Using jQuery on click of tab:</p>
  
  <pre><code>$('#iframeId').attr('src', 'http://somehost:8080/maApp/somePath.do?paramOne=us');
  
  
  &lt;iframe id="iframeId" style="width:90%;height:200px;border:0" src=""&gt;&lt;/iframe&gt; 
  </code></pre>
  
  <p>The above code works only in only windows machine bu fails in unix/linux machine (tomcat).</p>
  
  <p>But if I change it to relative path the it works in both windows and unix/linux. </p>
  
  <pre><code>$('#iframeId').attr('src', 'somePath.do?paramOne=us');
  </code></pre>
  
  <p><strong>Which one should I use, absolute or relative path?</strong></p>