• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

doubt on custom tags..

 
Shashidhar Yarabati
Ranch Hand
Posts: 175
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Header.tag


index.jsp


first.tld looks like:


If i run the above index.jsp in Tomcat I am getting error as follows.

exception
org.apache.jasper.JasperException: /index.jsp(4,2) Attribute subTitle invalid for tag Header according to TLD

root cause
org.apache.jasper.JasperException: /index.jsp(4,2) Attribute subTitle invalid for tag Header according to TLD

Everything else is fine..
Can anybody help me where I made mistake...?

Thanks in Advance
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<#@ attribute name="subTitle" required="true"%>

What is this # ?
 
Shashidhar Yarabati
Ranch Hand
Posts: 175
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oops...
It's typo. I never seen this
Thanks Christophe

I think defining tag file's in TLD file is optional right?
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes it's optional if you leave the Tag files under WEB-INF/tags. But you'll need one if you package your Tag Files in a JAR.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic