I have written a custom tag handler which extends from TagSupport class.
I see that the doStartTag() method can return one of the two : SKIP_BODY or EVAL_BODY_INCLUDE. But what i want to do is to process the body but not include it in the output. If I use SKIP_BODY the content of the body wont be processed and if I use EVA_BODY_INCLUDE the content would be included in the output.
Actually I want to include the output of the body only if a certain condition is met. What i am stuck at right now is that I cant get whatever is between the tags to appear on the JSP.
What i want is the output betwen the tags to appear on the main JSP if a certain condition is met. I am processing the content of the body inside the doAfterBody() method and setting a session variable.
Tried extending BodyTagSupport class. But cant figure out how to do this. Help appreciated.