Hey all

I am new to JSP and I would like to know (or if you guys could point me in a direction) on adding attributes to a tag dynamically with JSP

for example

I have this textinput field that takes in text

I just want to lock the textinput field when the user enters in "LOCKED", so in other words

when the textinput field gets the value of "LOCKED", the textinput field should be readonly or disabled.


Can anybody help me?

thanks!