1. I have a javascript function `updateHiddenField(value)` that gets a value as parameter and then sets this value as the value of a hidden field.
2. I have a JavaBean `flight` with parameters `id` and `flightNo`.

**Problem:** How can I pass the parameter `id` of JavaBean `flight` to the js function `updateHiddenField(value)` when using `<html:link>` tag(struts)?

```
<html:link href="javascript:updateHiddenField(idToPassHere)"><bean:write name="flight" property="flightNo"/></html:link>

```

Thanks
Umar