title: Using Struts tag within HTML tag for hiding/displaying table
body: <p>I want to hide a table on load of a page and hide it on click of a button on that page.I have created a property of type String in Action class named as <code>"displayTablle"</code> and assigned it a value <code>"none"</code> by default.So that when this page is opened by calling action,this property will be none and following code used in table tag should hide the table:</p>
  
  <pre class="lang-jsp prettyprint-override"><code>&lt;table border="true" id="dataTable" style="display:"&lt;s:hidden id="disTable"   name = "displayTable" value="%{displayTable}"/&gt;;"&gt; 
  
  &lt;s:submit value="Fetch Data" align="center" action="displayDataAction" /&gt;
  </code></pre>
  
  <p>Then on click of Fetch Data button, I am setting value of this property to blank string i.e <code>" "</code>, so that table will be displayed, But I am stuck with the syntax and <code>&lt;s:hidden&gt;</code> is not getting bound properly, as when I open the page, last part of the table tag's code i.e <code>;"&gt;</code> is getting printed as is.</p>
  
  <p>Can anybody suggest, what should be the right syntax to bind s:hidden in html table tag? Can we do it like this?</p>