Originally posted by Raul Martinez:
Sir Hans,
Sorry about the EVAL_BODY_AGAIN... actually I was thinking that I should put EVAL_BODY_INCLUDE. Anyhow, I replaced the EVAL_BODY_AGAIN to EVAL_BODY_BUFFERED
but still the output is
still... not the expected output
jm
EVAL_BODY_BUFFERED is the correct value for this example, because the doAfterBody() method reads the value from the buffer. EVAL_BODY_INCLUDE evaluates the body but doesn't buffer it.
After you've changed the tag handler class, make sure you restart the web container (or just the application, if your container supports that), to ensure that you're using the new version of the class. And don't forget to actually install the new version as well ;-) I've spent many hours pulling my hair just to realize that I was still using an old version of a class.