title: Dynamically adding an external JavaScript or CSS file in java web application
body: <p>I want to add an external JavaScript or CSS file in my test.html  dynamically.
  I know about this trick:</p>
  
  <pre><code> $(”).appendTo(‘head’).attr({
  
   rel: ‘stylesheet’,
  
   type: ‘text/css’,
  
   href: ‘**htttp://192.168.30.229:8080/**javascripts/jwysiwyg/jquery.wysiwyg.css’
  
  });
  </code></pre>
  
  <p>I want to save the url(<strong>http://192.168.30.229:8080/</strong>) of css and javascript on xml file for example web.xml, and read the url from web.xml file and append it to the href <strong><em>so if the url has to changed for example</em>
  **:http://192.168.100.229:7071/</strong> <em><strong>the code in the html has'nt to be changed.</em></strong></p>
  
  <p>How shoud I write/read that url in the xml file and use it in the test.html?</p>