wood burning stoves 2.0*
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
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Not able to understand the error" Watch "Not able to understand the error" New topic
Author

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).

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

- 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.


Merrill
Consultant, Sima Solutions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Not able to understand the error
 
Similar Threads
General problems with some beginner stuff
custom tag SetProperty: Mandatory attribute property missing
Strange problems with taglib
strange problems with taglib
Newbie lost in JSP