you can define whether an attribute is a RTExpression (runtime expression) or
not.  for many of the struts tags, the attributes value can be of a RTExpression.

so for your case, you are certainly legal to do something like

<html:text ... readonly="<%=giveMeTrueOrFalse()%>"/>

or any scriplet you wanna put

yanming lu wrote:

> Is there any way in the struts to dynamically set an attribute?
>
> Example:
> <html:text ... readonly=true.../>
>
> For this tag, can we somehow to set readonly to true sometimes to false
> based on certian conditions?
>
> _________________________________________________________________
> Join the world�s largest e-mail service with MSN Hotmail.
> http://www.hotmail.com
>
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to