Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Simple JSP - Attribute invalid for tag according to TLD

 
Ali Gordon
Ranch Hand
Posts: 182
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My project in eclipse -



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



Snippet from Header.jsp -



Snippet from MyTagUser.jsp -


 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65218
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you declare the attribute in the tag file?

P.S. Mixed case attributes are not recommended. Use all lowercase.
 
Ali Gordon
Ranch Hand
Posts: 182
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 182
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 65218
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use lowercase.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic