Wednesday, January 8, 2003 08:11 AM
I think if you use a scriptlet, then you are not using the "bean" you have "defined".
That is, when you say "<%= readOnly %>" you are asking for the value of a local variable named "readOnly".
But I think (?) though that your "bean:define" places a new attribute in the default scope. So to access it you'd have to do a "" for the "readOnly" attribute bean. You could do this if you just wanted to write out the current value, into the jsp's HTML output stream.
But, then your problem would be that you can't nest a "bean:write" tag, as the value of an attribute, nested inside an "html:text" tag, because they are not evaluated in the order necessary for that to work.