• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

question about <body-content>

 
Malika Ben Aziz
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
 
Shoban Babu
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?
 
Ankit Garg
Sheriff
Posts: 9529
33
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check this faq. The body-content tag is optional for classic tags...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic