aspose file tools*
The moose likes JSP and the fly likes Simple JSP - Attribute invalid for tag according to TLD Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Simple JSP - Attribute invalid for tag according to TLD" Watch "Simple JSP - Attribute invalid for tag according to TLD" New topic
Author

Simple JSP - Attribute invalid for tag according to TLD

Ali Gordon
Ranch Hand

Joined: Apr 30, 2014
Posts: 178

My project in eclipse -



I get the error below when I run MyTagUser.jsp -



Snippet from Header.jsp -



Snippet from MyTagUser.jsp -



My name was Borat Sagdiyev. But the forum does not allow such names.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61433
    
  67

Did you declare the attribute in the tag file?

P.S. Mixed case attributes are not recommended. Use all lowercase.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Ali Gordon
Ranch Hand

Joined: Apr 30, 2014
Posts: 178

Bear Bibeault wrote:Did you declare the attribute in the tag file?

P.S. Mixed case attributes are not recommended. Use all lowercase.


No, I did not. How do I do that ? My book only shows me the snippet which I gave here.
Ali Gordon
Ranch Hand

Joined: Apr 30, 2014
Posts: 178

Bear Bibeault wrote:Did you declare the attribute in the tag file?

P.S. Mixed case attributes are not recommended. Use all lowercase.


No, I did not. Oh ! Duh ! The book does it for me 2 pages later and it shows me the same error which I gave. Great ! Why did they wait ?

I fixed the problem this way -



Is it okay ? Is it nice ?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61433
    
  67

Use lowercase.
 
Consider Paul's rocket mass heater.
 
subject: Simple JSP - Attribute invalid for tag according to TLD