Is JSP a valid value for <body-content> sub-element of tag element in tag library descriptor.
I have read somewhere that if you want to make your tag accept JSP as the value for the <body-content>, then you should not make an entry for the <body-content> sub-element under tag element. And the tag handler assumes it as JSP.
Even i have tried to use JSP as the value for the <body-content>, but the container is showing me an error 'it is not a valid value'. But in HFSJ, no information about this problem.
<body-content> in simple tags can have one of the three values:
empty: Specifies that the body of the tag must be empty
tagdependent : Specifies that the content is not to be interpreted by the JSP engine and is tag dependent
scriptless: SimpleTags cannot process script elements (declarations,expressions,scripts) inside body content hence scriptless , however it can contain template text,EL expression, and JSP action elements
If you want to process a SimpleTag's body , you need to set its <body-content> to tagdependent or scriptless . The specification does not define a default value for a simple tag handlers it depends on the implementation