Select all valid values for the <body-content> attribute in a TLD? [Check all correct answers]
1. empty 2. JSP 3. dependent 4. HTML 5. code
Answers given by j2eecertificate.com is : 1 & 2.
According to me "JSP" is invalid. I checked the spec, it gave the following examplination
<Spec>
A TLD is invalid if it specifies JSP as the value for
<body-content> for a tag whose handler implements the SimpleTag interface. JSP containers are recommended to but not required to produce an error if JSP is specified in this case.
</spec>
So does this mean the JSP can be one of the values in the <Body-content> attribute.
shashank
http://java.itags.org/java-certification/9145/
其实这个问题想了好久,怎么才能融会贯通?看规范真的很重要。
1. empty 2. JSP 3. dependent 4. HTML 5. code
Answers given by j2eecertificate.com is : 1 & 2.
According to me "JSP" is invalid. I checked the spec, it gave the following examplination
<Spec>
A TLD is invalid if it specifies JSP as the value for
<body-content> for a tag whose handler implements the SimpleTag interface. JSP containers are recommended to but not required to produce an error if JSP is specified in this case.
</spec>
So does this mean the JSP can be one of the values in the <Body-content> attribute.
shashank
http://java.itags.org/java-certification/9145/
其实这个问题想了好久,怎么才能融会贯通?看规范真的很重要。