Søren Blidorf wrote:
Hi.
I am trying to convert the following in to struts taglib
I'm not really sure what that means. You want to convert a client-side
Javascript behaviour to a server-side behaviour. What is the use case
you're trying to achieve?
<script language="javascript">
function choose() {
if (this.form.v1.selectedIndex==3) {
this.form.v2.readOnly=true;
this.form.v2.value='';
}
}
</script>
<select name="v1" onchange="choose(selectedIndex)">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
</select>
OK, so when the selected value is changed, you have Javascript that will
dynamically set another field to readonly. Are you asking how to
implement the same logic if the form is submitted with the appropriate
option selected?
L.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]