• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

Question on Empty body content of Simple Tag Handlers

 
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am trying to execute a program with empty body content.

AdviceTag.jsp:



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?

 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic