Could you use JSTL to accomplish the same thing?  For example,

<c:choose>
        <c:when test='${empty readOnly}'>
                <html:text property="myproperty"  readonly="false"/>

        </c:when>
        <c:otherwise>
                <html:text property="myproperty"  readonly="true"/>

        </c:otherwise>
</c:choose>

-----Original Message-----
From: D'Ottavio Alessandro [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 22, 2008 10:57 AM
To: user@struts.apache.org
Subject: TAG embeded inside TAG struts 1

 

Hallo 

 

I need to set dinamically poperties of the TAG struts

 

Example

 

I have a easy form like this:

 

<html:form action="\MyAction" >

            <html:text property="myproperty"  readonly="true"   />

</html:form>     

 

 

I wont that read-only properties assume value true or false dynamically
using a specific bean that represent for me a mask on with field are
read-only and witch other no...

I have a bean with the properties of the filed and i wont to do someting
like this 

 

<html:text property="myproperty"  readonly=<bean:write
name="readonlyproperties" property="myproperty">   />

 

Obviously in the property myproperty of the bean readonlyproperties
there is a value string that is "true" or "false"

 

So I wont embed a TAG  inside another TAG,  in this specific case
beand:write inside a tag html:text

 

Thanks

 

Ing. Alessandro D'Ottavio
Elsag Datamat S.p.A. - Banking & Finance Division
Financing Systems Area Department - Tadawul
Via Naide 43 - 00155 - Rome Italy
Fax Number : +39 06 22796324
Office  : +39 06 22724617
Mobile : +39 3349067696
e-mail : [EMAIL PROTECTED]
<BLOCKED::mailto:[EMAIL PROTECTED]> 

 



"Questo messaggio ed ogni suo allegato sono confidenziali e possono essere
riservati o, comunque, protetti dall'essere diffusi. Se il ricevente non i
il destinatario diretto del presente messaggio, i pregato di contattare
l'originario mittente e di cancellare questo messaggio ed ogni suo allegato
dal sistema di posta. Se il ricevente non i il destinatario diretto del
presente messaggio, sono vietati l'uso, la riproduzione e la stampa di
questo messaggio e di ogni suo allegato, nonchi la diffusione del loro
contenuto a qualsiasi altro soggetto"
*****
"This message and any attachment are confidential and may be privileged or
otherwise protected from disclosure. If you are not the intended recipient,
please contact the sender and delete this message and any attachment from
your system. If you are not the intended recipient you must not use, copy or
print this message or attachment or disclose the contents to any other
person."


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

Reply via email to