Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jsp:attribute and tag body

 
bernard savary
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • 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
 
Bryan Basham
author
Ranch Hand
Posts: 199
  • Mark post as helpful
  • send pies
  • 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
  • Quote
  • Report post to moderator
Thanks Bryan . Its feels great get answers from the Guru itself
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic