For a tag to accept any valid jsp code as its body, what should be the value of <body-content> for this tag's taglib descriptor?
Select 1 correct option.
d.The <body-content> subelement itself may be absent.
I have selected answer is B.because while reading the jsp tag in the jsp file we should give the body content is jsp in tld file rite.but they are giving answer is d.for that they given explanation also.I am not able to understand that one.here I have attached explanation also here. please any body clear this confusion.
In the tag library descriptor file (the .tld file) the body-content element is mandatory. You are referring to the body-content attribute of the tag directive in a tag file. This attribute defaults to "scriptless" and not "JSP", by the way. "JSP" is not even allowed, as tag files are translated to tag handlers implementing the SimpleTag interface, which disallows body-content "JSP".
Please refer to JSP 2.0 specs Figure JSP.C-3 (p. 3-17) and Table JSP.8-2 (p. 1-180).
SCJP 1.4, SCWCD 1.4
I need a new interior decorator. This tiny ad just painted every room in my house purple.