You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by yanming lu <lu...@hotmail.com> on 2002/03/12 20:30:55 UTC
dynamicly set an attribute of tags
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 worlds largest e-mail service with MSN Hotmail.
http://www.hotmail.com
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: dynamicly set an attribute of tags
Posted by Louis Leung <lo...@sun.com>.
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 worlds largest e-mail service with MSN Hotmail.
> http://www.hotmail.com
>
> --
> To unsubscribe, e-mail: <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>