aspose file tools*
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
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: 1672
    
  25

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 ?