This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
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


Win a copy of Head First Android this week in the Android forum!
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?

 
 
subject: Question on Empty body content of Simple Tag Handlers
 
It's not a secret anymore!