• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
  • Junilu Lacar
Sheriffs:
  • Tim Cooke
  • Jeanne Boyarsky
  • Knute Snortum
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:
  • salvin francis
  • fred rosenberger
  • Frits Walraven

question about <body-content>

 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,


In custom tags, the <body-content> is optional or mandatory?


what happens if I let it empty, like this <body-content></body-content>?
what is it's default value

Thanks
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In custom tags, the <body-content> is mandatory.It takes one value from the following values: empty,scriptless,tagdependent or JSP.
<body-content>empty</body-content> means the tag must not have any body
<body-content>scriptless</body-content> means the tag must not have scripting elements
<body-content>tagdependent</body-content>means the tag body is treated as plain text
<body-content>JSP</body-content>means the tag body can have anything that can go inside a jsp
 
Malika Ben Aziz
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Shoban Babu wrote:In custom tags, the <body-content> is mandatory.It takes one value from the following values: empty,scriptless,tagdependent or JSP.
<body-content>empty</body-content> means the tag must not have any body
<body-content>scriptless</body-content> means the tag must not have scripting elements
<body-content>tagdependent</body-content>means the tag body is treated as plain text
<body-content>JSP</body-content>means the tag body can have anything that can go inside a jsp


OK, thanks
but what id It's left empty

<body-content> </body-content>


What is the default value?
 
Sheriff
Posts: 9671
42
Android Google Web Toolkit Hibernate IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check this faq. The body-content tag is optional for classic tags...
 
Curse your sudden but inevitable betrayal! And this tiny ad too!
Two software engineers solve most of the world's problems in one K&R sized book
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic