chapter 10 : part : What exactly IS a JspFragment?
Please see in this part mentioned it has been mentioned that "The crucial thing you must remember about JspFragment is that it must NOT contain any scripting elements"
Now, with body-content = "JSP" , everything written in a JSP is valid for the body of tag including scriptlet. So we can not use body-content = "JSP" for the simple tag.
So body-content for simple tag are same as tag file which is empty,scriptless and tagdependent. Am I right? and is the default value again is scriptless? Please let me know for Classic Tag also.
Thanks Ranchers.. Now, Iam very clear about the body-contents for tag files, simple tags and custom tags.. actually page-472 of HSFJ confused me..they shd have mentioned there itself that body-content "JSP" is only for custom tags.. then it would be nore clear..
It is a good thing to know that the container translates tag files into SimpleTag classes. That's why they're both allowed the same types of body content.