I want to write a custom tag which display some default message if the body is empty or display the body if it isn't. How do I test if a body is empty in doTag()? All I have is only getJspBody().invoke(..)!!
posted 12 years ago
I believe there's an overloaded "invoke" method that will evaluate the body and store the result in some sort of output stream instead of sending it back to the client. At that point you can get the contents as a string, etc.