Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Regarding Custom Tag  RSS feed

 
Madhumathy Viswanathan
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Need help on this scenario
A Custom Tag is created which has a body content. In TLD it is like:
<bodycontent>JSP</bodycontent>
In some pages there is jsp code to put inside the custom tag which will be handled by tag handler.
Eg:<customtag>jspcode.....</customtag>
But for some pages there is no body but has a requirement to use the same tag.If i use like: <customtag></customtag> the tag handler fails because of no body.

Help me on this issue.
 
chris noe
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
try putting a blank between the start and end tag.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!