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

EPractice Lab review quiz 1 about body content

 
Himai Minh
Ranch Hand
Posts: 1361
7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

For tags that have body, the type of the body content needs to be specified.
Body content containing custom and core tags, scripting elements, and HTML text is categorized as which of the following types?
a. JSP
b. tagdependent
c. empty
d. None of the above.
Choice A is correct
For tags with body, the syntax of body-content element is as follows:
<body-content> JSP | tagdependent </body-content>
The body-content containing custom and core tags, scripting elements, and HTML text is categorized as JSP while all other types of body-content, -e.g. SQL statements passed to the query tag, would be labeled tagdependent.
Also note that the value of body-content element doesn't affect the interpretation of the body by the tag handler; the element is only intended to be used by an authoring tool for rendering the body content.


According to EPractice Lab, custom/core tags and HTML are categorized as JSP.

But according to J2EE tutorial 5, it says custom/core tags, HTML is categorized as scriptless:

You specify the type of a tag’s body content using the body-content attribute:
bodycontent="empty | scriptless | tagdependent"
You must declare the body content of tags that do not accept a body as empty. For tags that have a body there are two options. Body content containing custom and standard tags and HTML text is specified as scriptless. All other types of body content (for example, SQL statements passed to the query tag) is specified as tagdependent. If no attribute is specified, the default is scriptless.

Reference:
https://docs.oracle.com/cd/E19316-01/819-3669/bnamg/index.html
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic