• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Doubt In Tag Library Descriptor

 
Ranch Hand
Posts: 162
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Ranch Hand
Posts: 95
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You are right.

Thank You.
 
reply
    Bookmark Topic Watch Topic
  • New Topic