Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Doubt In Tag Library Descriptor  RSS feed

 
Bennet Xavier
Ranch Hand
Posts: 162
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

i tried writing custom tags.

i mentioned <body-content>JSP<body-content>

but, while executing the jsp page i am getting org.apache.jasper.JasperException: /TagLibraryDescriptorTLD.jsp(12,0) The TLD for the class foo.TagLibraryDescriptorTLD specifies an invalid body-content (JSP) for a SimpleTag.

What might be the problem.

Thanks In Advance.
[ July 09, 2008: Message edited by: Bear Bibeault ]
 
Shikhar Madhok
Ranch Hand
Posts: 95
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Probably because Simple tags do not have a body. If you want your tag to have a body then your tag handler should extend BodyTagSupport class.
or if your tag does not have a body then you should change

to


HTH
Shikhar

[SM: Corrected a Grammatical Error.]
[ July 09, 2008: Message edited by: Shikhar Madhok ]
 
Bennet Xavier
Ranch Hand
Posts: 162
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are right.

Thank You.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!