Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Question on Empty body content of Simple Tag Handlers  RSS feed

Sangeetha Raja
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to execute a program with empty body content.


AdviceTag handler class has the code;

TLD has;

The output is;

Advisor Tag handler

HelloSangi!!!You are in do Tag

Your Advice is:::you are here in getAdvice
Body content of JSP goes here!!! Sangi

I am expecting error as the body content is empty(there shouldnt be anything inside the body of the tag).

I assume because of getJspBody().invoke(null) the body of the tag is getting printed. Can anyone of you please let me know my assumption is correct?

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!