wood burning stoves 2.0*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 923
    
    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?


OCPJP 6(100 %) OCEWCD 6(91 %) OCPJBCD(93%)
Frits Walraven
Creator of Enthuware JWS+ V6
Bartender

Joined: Apr 07, 2010
Posts: 1518
    
  22

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: 923
    
    1

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