But then on P.567 it says: "...simple tags cannot have a body that includes a JSP expression tag"
SCJP, SCJD, SCWCD
posted 10 years ago
- 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
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads