aspose file tools*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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
 
Similar Threads
Problem in Adding Attributes to TLD file
custom "advice" tag example
Problem While using EL
org.apache.jasper.JasperException: Unable to compile class for JSP:
AdvisorTagHandler unable to compile