• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 199
  • Last Modified:

Regarding custom tags

what is difference between getParent() method and findAncestorWithClass() method in custom tags?and what is a ancestor?
0
PrakashVarma
Asked:
PrakashVarma
  • 3
1 Solution
 
chaitu chaituCommented:
0
 
chaitu chaituCommented:
0
 
dhruvpratapCommented:
findAncestorWithClass()
Searches up the parent hierarchy for a Tag of the given type and returns the tag of the given type or null if it could not be found. It does not necessarily return the immediate parent it returns the most accurate match up the hierarchy.

getParent()
Returns the immediate parent of this tag.

Reference : http://commons.apache.org/jelly/apidocs/org/apache/commons/jelly/TagSupport.html#getParent()

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: CompTIA Healthcare IT Tech

This course will help prep you to earn the CompTIA Healthcare IT Technician certification showing that you have the knowledge and skills needed to succeed in installing, managing, and troubleshooting IT systems in medical and clinical settings.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now