title: how to use dynamic css in jsp file base on param value
body: <p>I have a jsp file ,like this :</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
       &lt;script type="text/javascript"&gt;
         var type=&lt;bean:write name="class" property="type" /&gt;  
       &lt;/script&gt; 
  
       &lt;style type="text/css"&gt;
          .td-type1
          {
              width: 10mm;
          }
          .td-type2
          {
              width: 20mm;
          }
      &lt;/style&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;table&gt;
          &lt;tr&gt;
              &lt;td class="td-type1"&gt;
              &lt;/td&gt;
          &lt;/tr&gt;
      &lt;/table&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>My question is: How to change css dynamically base on type value?
  For example, if type equal 2, then the css class of td-type2 should be used for td tag.
  should I use .properties file to save all config or multi css files or ...?</p>