title: Enter bean value into hidden input in Struts (1.x) with different name than bean
body: <p>So I have a generic form bean I am using that has a few values such as action, offer, code.</p>
  
  <p>I am developing a new form that uses this generic form (required) but I want to use the value of a bean that has a name different from the bean I get values from to populate the form page.  </p>
  
  <p>On the first load of the page it displays some basic data:</p>
  
  <pre><code>Action: (hidden input, name the same as the bean)
  &lt;html:hidden property="action"/&gt;
  
  Offer: (user input, name the same as the bean)
  &lt;html:text property="offer"/&gt;
  
  Code: (hidden input, name not the same as the bean)
  &lt;html:hidden property="code"/&gt;
  </code></pre>
  
  <p>The bean I was to use is something like:</p>
  
  <pre><code>&lt;bean:write name="data" property="data.code.description"/&gt;
  </code></pre>
  
  <p>How do I get that value (data.code.desription) into the "hidden" code area so that when the form is submitted the generic form bean picks up the value?</p>