title: how to pass parameter to a javascript function using struts taglib?
body: <ol>
  <li><p>I have a javascript function <code>updateHiddenField(value)</code> that gets a value as parameter and then sets this value as the value of a hidden field.</p></li>
  <li><p>I have a JavaBean <code>flight</code> with parameters <code>id</code> and <code>flightNo</code>.</p></li>
  </ol>
  
  <p><strong>Problem:</strong> How can I pass the parameter <code>id</code> of JavaBean <code>flight</code> to the js function <code>updateHiddenField(value)</code> when using <code>&lt;html:link&gt;</code> tag(struts)?</p>
  
  <pre><code>&lt;html:link href="javascript:updateHiddenField(idToPassHere)"&gt;&lt;bean:write name="flight" property="flightNo"/&gt;&lt;/html:link&gt;
  </code></pre>
  
  <p>Thanks
  Umar</p>