• 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

jsp:attribute and tag body

 
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi ,
When I use jsp:attribute I am not allowed to specify anything in the body of the tag except through jsp:body even though the body-content is NOT empty . Is there any rules wrt jsp:attribute
 
author
Posts: 199
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Bernard,

Take a look at the documentation for the jsp:body tag in the JSP spec. If you use one or more jsp:attribute tags, then you must use a jsp:body tag to encapsulate the actual body of the custom tag. Doing so makes it perfectly clear to the JSP engine what is and is not body content for the custom tag during translation.

Regards,
Bryan
 
bernard savary
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Bryan . Its feels great get answers from the Guru itself
reply
    Bookmark Topic Watch Topic
  • New Topic