Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

CustomTags

 
Rahesh Kumar
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am new to custom tags,i am trying custom tags with body content.Is it necessary to set the bodycontent tag in tld file to JSP or jspcontent or will the tag work if the bodycontent tag is set to empty?

i need ur valuable suggestions.
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
According to Sun's tutorial on "Tags With a Body", the value of the bodycontent element must be JSP or tagdependent.
 
Rahesh Kumar
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI Dirk,
Thanks for your valuable suggestion,I tried setting the body content as empty for custom tags with body content it works fine too,is there any particular reason for this.I am bit confused now whether to set it or not
can you provide me with a clear explanation on this

Thanks
Rahesh
 
Try 100 things. 2 will work out, but you will never know in advance which 2. This tiny ad might be one:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!