This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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: 164

My project in eclipse -



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



Snippet from Header.jsp -



Snippet from MyTagUser.jsp -



Thank you for all your help and support. High five !
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60810
    
  65

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

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

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: 60810
    
  65

Use lowercase.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Simple JSP - Attribute invalid for tag according to TLD
 
Similar Threads
Custom Tags Page 496 HFSJ Question
doubt on custom tags..
Custom tag with parameters - HFSJ pg. 494
From HF page 494 ,Using the attributes in Tag file
Tag File error....