File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Java Interview Guide this week in the Jobs Discussion 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
I agree. Here's the link:
subject: Not able to understand the error
It's not a secret anymore!