As such there is no default for simple tag or custom tag. There is only default for <body-content> and that is JSP. As in your TLD, you can't specify whether it's simple or custom tag. That is something the JSP engine comes to know only after seeing the implimentation of your class
You do one thing. You create a Simple tag. And don't declare <body-content> in TLD for that tag.
You will see you will get a translation error. Saying something JSP is not valid option for <body-content> for simple tag.
posted 12 years ago
1- JSP is default setting (as it can't be guess from the TLD whether it is simple tag or classic tag) 2- We must set <body-content> for the simple tag, as JSP is not valid for the simple tag (i tried as you said) 3- scriptless, tagdependent and empty are others for both (simple and classic)
Now is that correct?
One more thing:
"As in your TLD, you can't specify whether it's simple or custom tag."
If we see <body-content>JSP</body-content> in the TLD, we can say it is for classic tag handler. Right?