Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

JSP tag bodycontent - tagdepent or JSP

Status
Not open for further replies.

ranadhir

Programmer
Nov 4, 2003
54
0
0
IN
I am new to custom tags and face a conceptual problem.
I have nestedtags in my JSP as follows:
<user:useragevalidation id="user">
<user:NotValidAge>You are not of valid age.</user:NotValidAge>
<user:validage>Yuo are of valid age.</user:validage>
</user:useragevalidation>

Now when i define the bodycontent of outer tag(useragevalidation) as tagdependent,I see that the inner tags are not parsed at all (dostarttag/doafterbody of inner tags are not called).
However when i change the bodycontent property to JSP,the inner tags are processed for dostarttag/doafterbody etc.,without any other change in code anywhere.

What causes this difference?Why does the tagdependent property not work in this case?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top