Hi Frank!

Maybe your TLD is malformed. Check out the TLD-File (struts-html.tld
(default)) what it is saying.

We use for example this code-line in one of our JSP pages and it is working:
<html:radio property="user.role" value="<%= HtmlConstants.OP_INTERN %>"
disabled="true"/>

Maybe have a look into your TLD file and search for radio, there you should
find something like this:

excerpt of our struts-html.tld
...
<tag>
### HTML:RADIO ###
 <name>radio</name>
 <tagclass>org.apache.struts.taglib.html.RadioTag</tagclass>
 <attribute>
  <name>accesskey</name>
  <required>false</required>
  <rtexprvalue>true</rtexprvalue>
 </attribute>
### Attribute DISABLED ###
 <attribute>
  <name>disabled</name>
  <required>false</required>
  <rtexprvalue>true</rtexprvalue>
 </attribute>
 <attribute>
  <name>name</name>
  <required>false</required>
  <rtexprvalue>true</rtexprvalue>
 </attribute>
 <attribute>
  <name>onblur</name>
  <required>false</required>
  <rtexprvalue>true</rtexprvalue>
 </attribute>
 <attribute>
  <name>onchange</name>
  <required>false</required>
  <rtexprvalue>true</rtexprvalue>
 </attribute>
 <attribute>
  <name>onclick</name>
  <required>false</required>
  <rtexprvalue>true</rtexprvalue>
 </attribute>
 <attribute>
  <name>ondblclick</name>
  <required>false</required>
  <rtexprvalue>true</rtexprvalue>
 </attribute>
 <attribute>
  <name>onfocus</name>
  <required>false</required>
  <rtexprvalue>true</rtexprvalue>
 </attribute>
 <attribute>
  <name>onkeydown</name>
  <required>false</required>
  <rtexprvalue>true</rtexprvalue>
 </attribute>
 <attribute>
  <name>onkeypress</name>
  <required>false</required>
  <rtexprvalue>true</rtexprvalue>
 </attribute>
 <attribute>
  <name>onkeyup</name>
  <required>false</required>
  <rtexprvalue>true</rtexprvalue>
 </attribute>
 <attribute>
  <name>property</name>
  <required>true</required>
  <rtexprvalue>true</rtexprvalue>
 </attribute>
 <attribute>
  <name>onmousedown</name>
  <required>false</required>
  <rtexprvalue>true</rtexprvalue>
 </attribute>
 <attribute>
  <name>style</name>
  <required>false</required>
  <rtexprvalue>true</rtexprvalue>
 </attribute>
 <attribute>
  <name>styleClass</name>
  <required>false</required>
  <rtexprvalue>true</rtexprvalue>
 </attribute>
 <attribute>
  <name>styleId</name>
  <required>false</required>
  <rtexprvalue>true</rtexprvalue>
 </attribute>
 <attribute>
  <name>tabindex</name>
  <required>false</required>
  <rtexprvalue>true</rtexprvalue>
 </attribute>
 <attribute>
  <name>value</name>
  <required>true</required>
  <rtexprvalue>true</rtexprvalue>
 </attribute>
</tag>
...

so far
Mike

>-----Original Message-----
>From: Otto, Frank [mailto:[EMAIL PROTECTED]
>Sent: Donnerstag, 15. Jänner 2004 15:04
>To: Struts-User (E-Mail)
>Subject: html:radio
>
>
>Hello,
> 
>I want to disable a radio with attribute disabled="true".
> 
>But I get this error:
> 
>Attribute disabled invalid according to the specified TLD' 
> 
>Has anyone an idea?
> 
> 
>Regards,
> 
>Frank
>

Reply via email to