- Classic Tags may have body-content set to JSP (and thus scriptlet in the body) - Simple Tags may not have body-content set to JSP (and thus scriptlet in the body)
The trick I use to remember it is that SimpleTag has a getBody() method which returns JSPFragment and A JSPFragment MAY NOT CONTENT SCRIPTING (yes, it was written in bold in the Head first, so I remembered it :-)).
By the way, tag files may not have body-content set to JSP either.
It is a mistake to think you can solve any major problems just with potatoes.<br />--Douglas Adams
For my next feat, I will require a volunteer from the audience! Perhaps this tiny ad?
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop