title: How to read value from property file using Java Script?
body: <p>I added textfield and a button in velocity script that is used through a web app. When web app is launched start.properties file is read. There's a property: debug_on that can take two values 0 or 1.</p>
  
  <p>So I want to display textfield and the button according to debug_on value. It can be done in velocity script via javascript, if I'm not mistaken (I'm not a pro in JavaScript), but I need to get the property value in order to move further. </p>
  
  <p>How can I achieve it?</p>
  
  <p><em>UPDATED</em></p>
  
  <p>Velocity script example where main GWT (Java) code is embedded at the end:</p>
  
  <pre><code>&lt;!--doctype head declaration--&gt;
  
     &lt;head&gt;
        &lt;meta http-equiv="content-type" content="text/html; charset=UTF-8"&gt;
        &lt;title&gt;Web App&lt;/title&gt;
        &lt;style&gt;
          &lt;!-- styles --&gt;
        &lt;/style&gt;
        &lt;link rel="stylesheet" href="/css/webapp.css" type="text/css"/&gt;
        &lt;meta name='gwt:module' content='$uri'&gt;
      &lt;/head&gt;
      &lt;body&gt;
          &lt;script language="javascript" src="/$uri/com.myproject.gwt.main.nocache.js"&gt;&lt;/script&gt;
          &lt;!-- TextField and button are located here --&gt;
          &lt;table style="width: 300px; height: 100px;" class="gwt-DialogBox" cellpadding="0" cellspacing="5"&gt;
              &lt;!-- some other part of a page tha will be persistent through all GWT pages --&gt;
           &lt;/table&gt;
      &lt;/body&gt;
      &lt;/html&gt;
  </code></pre>