wood burning stoves 2.0*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes utterly confused with getParent() method 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 "utterly confused with getParent() method" Watch "utterly confused with getParent() method" New topic
Author

utterly confused with getParent() method

sriram kalakoti
Greenhorn

Joined: Jan 07, 2006
Posts: 17
in hfsj pg550 3rd mock question the solution says C is correct which means " getParent() method can be called by a classic tag to get its parent which is a simpletag "

if the above statement is true then we can summarize the use getParent() method as follows "By using getParent() a Classic tag can access either Classic tag Parents , or Simple tag Parents and a Simple tag can access either a Classic or Simple parent.

but on page 540 it says " a classic tag can access Classic tag parents , and a simpke tag can access either a classic or simple parent.

now what i want to clarify is " can we call the getParent method in a classic tag to get the SimpleTag parent???
Patrick Williams
Ranch Hand

Joined: Apr 03, 2005
Posts: 213
The errata now says that there is no correct answer for that question...

http://www.oreilly.com/catalog/headservletsjsp/errata/headservletsjsp.confirmed


Patrick<br /> <br />SCJP/SCWCD/SCBCD/SCDJWS/SCEA<br /> <br />Currently working on:<br />SCJP 6
sriram kalakoti
Greenhorn

Joined: Jan 07, 2006
Posts: 17
Thnaks a lot Williams


regards
Sriram
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: utterly confused with getParent() method
 
Similar Threads
Simple/Classic tag parent access
Parents of Simple - Classic tags
Tag Files - getParent()
HFSJ page 550
BodyTagSupport + EVAL_BODY_BUFFERED + tag hierarchy