Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Not able to understand the error

 
Akshay Singhvi
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Ranchers,
I wrote this line in my application:
<html:text name = "departmentLoadForm" property = "aliasFacilityName" class="input" id="FacName" disabled="true"/>

This line is giving an error stating :
Unable to locate tag attribute info for tag attribute class

Can you please help me out..
 
Brent Sterling
Ranch Hand
Posts: 948
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The message is a little odd, but I think the problem is that "id" is not a valid attribute for the html:text tag. Try using styleId instead (which renders an id tag in the html).

http://struts.apache.org/1.1/userGuide/struts-html.html#text

- Brent
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Brent is right about the fact that id is not a valid attribute. I also wanted to mention that "class" isn't a valid attribute either. Substitute "styleClass" instead. This is actually the attribute the error message is complaining about.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic