Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes JSP and the fly likes Question on Empty body content of Simple Tag Handlers Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Question on Empty body content of Simple Tag Handlers" Watch "Question on Empty body content of Simple Tag Handlers" New topic
Author

Question on Empty body content of Simple Tag Handlers

Sangeetha Raja
Greenhorn

Joined: Dec 18, 2008
Posts: 28
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?

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Question on Empty body content of Simple Tag Handlers