jQuery in Action, 2nd edition*
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 OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP 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: 182

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: 61449
    
  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: 182

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: 182

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: 61449
    
  67

Use lowercase.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Simple JSP - Attribute invalid for tag according to TLD