This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Struts and the fly likes Not able to understand the error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Not able to understand the error" Watch "Not able to understand the error" New topic

Not able to understand the error

Akshay Singhvi
Ranch Hand

Joined: Nov 08, 2005
Posts: 93
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..

Regards,<br />Akshay Singhvi<br />SCJP 1.4 (95%)<br />SCWCD 1.4 (86%)
Brent Sterling
Ranch Hand

Joined: Feb 08, 2006
Posts: 948
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).

- Brent
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
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.

Consultant, Sima Solutions
subject: Not able to understand the error
It's not a secret anymore!