This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes hfsj chapter 10 cooperating tags doubt ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "hfsj chapter 10 cooperating tags doubt ?" Watch "hfsj chapter 10 cooperating tags doubt ?" New topic
Author

hfsj chapter 10 cooperating tags doubt ?

gurpeet singh
Ranch Hand

Joined: Apr 04, 2012
Posts: 924
    
    1

please refer hfsj 2nd edition, chapter 10, page 572-573. following is an example of co-operating tags example given at the above mentioned pages




following is the tag invocation given :



my doubt is since the child tags are empty(no body content) then why does the doStartTag() method of the MenuItem class return EVAL_BODY_INCLUDE. ?? it can return SKIP_BODY, right?

Frits Walraven
Creator of Enthuware JWS+ V6
Bartender

Joined: Apr 07, 2010
Posts: 1628
    
  23

my doubt is since the child tags are empty(no body content) then why does the doStartTag() method of the MenuItem class return EVAL_BODY_INCLUDE. ?? it can return SKIP_BODY, right?


Correct! You are right, as there is no body, there is no need to evaluate it.

Regards,
Frits
gurpeet singh
Ranch Hand

Joined: Apr 04, 2012
Posts: 924
    
    1

Thanks alot Fritz.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: hfsj chapter 10 cooperating tags doubt ?
 
Similar Threads
How to define multiple tag handlers
Parent and Child Tags
Doubt in TagSupport (Classic Tag)
How can a parent tag access its child tag's attribute in Simple Tag
classic tag inside a simple tag