What is the valid value for the body-content element in the TLD file?

Tags

Showing Answers 1 - 3 of 3 Answers

akantilal

  • Jun 13th, 2007
 

There is a slight difference in the valid values for the body-content element in J2EE 1.3 vs 1.4.

In J2EE 1.3, the valid values are "empty", "JSP" and "tagdependent". "empty" indicates a tag without body. "JSP" indicates that the body content can possibly contain JSP tags so they would be evaluated first by the JSP Container and then the resulting content would be passed to your tag class. "tagdependent" indicates that the body content of the tag should not be evaluated for JSP tags at all.

In J2EE 1.4, the valid values are "empty", "scriptless" and "tagdependent". "scriptless" has the same meaning as the "JSP" value in 1.3 except that scripting elements are not allowed. The default if you do not specify any value is "scriptless".

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions