Standard Struts w/logic tags:
<logic:equal name="form" property="textDisabled" value="yes">
<html:text property="name"
size="40"
maxlength="40"
disabled="true"/>
</logic:equal>
<logic:notEqual name="form" property="textDisabled" value="yes">
<html:text property="name"
size="40"
maxlength="40"/>
</logic:notEqual>Standard Struts w/request-time expression:
<html:text property="name"
size="40"
maxlength="40"
disabled="<%= rt expr that evals to true of false %>"/>Struts-EL:
<html-el:text property="name"
size="40"
maxlength="40"
disabled="${el expr that evals to true or false}"/>And probably a few others...
David Graham wrote:
--- [EMAIL PROTECTED] wrote:
Is it a limitation of HTML or struts tag implementation? Does struts 1.1 solve this issue (JSTL or otherwise).
It has nothing to do with HTML or Struts. This is a syntax error according to the JSP spec which means that no tag library can use a tag as another tag's attribute value.
David
Kishan
"Benjamin Stewart" <[EMAIL PROTECTED]> on 09/07/2003 11:39:09
Please respond to "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]> cc:
Subject: Re: Tag inside a tag
you cant use tags inside tags... I discovered this recently :-( There are ways around it using jstl etc.
[EMAIL PROTECTED] writes:
Hi,
Can I specify a disabled attribute of a text tag using another tag.
For example: <html:text property="name" size="40" maxlength="40" <logic:equal name="form" property="textDisabled" value="yes">disabled</logic:equal> />
Here I have to disable the text depending upon the property "textDisabaled". The above thing is not working.
Has anyone tried this thing before. I am using struts 1.02.
Thanks in advance,
Kishan
-- Kris Schneider <mailto:[EMAIL PROTECTED]> D.O.Tech <http://www.dotech.com/>
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

