Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Simple and Classic tags understanding

 
Amruth Puppala
Ranch Hand
Posts: 295
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1.Can Classic tags have Simple tag Parents, if yes any constraints/rules, if no why
2.Can Simple tags have Classic tag Parents,if yes any constraints/rules, if no why
 
deepa raj
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


Classic Tags can have Classic Parents without contraints.

But Classic Tags can have Simple parents only the Classic Tag doesnt contain any scrpiting code in it.Because , Simple tag body content doesnt support JSP.

Note : Directives are not coming under Scripting.



Simple tag can have Simple /Classic Tag Parents without any contraints.


Correct me if i am wrong.
 
Amruth Puppala
Ranch Hand
Posts: 295
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks deepa raj

Simple tag -> getParent() retuns JspTag
Classic tag -> getParent() retruns Tag.

So Tag can be JspTag but JspTag need not be Tag according to OOPs. How this problem is solved please explain bit clarity.
 
deepa raj
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hope this helps. TagAdapter Class.


 
Amruth Puppala
Ranch Hand
Posts: 295
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a ton deepa raj.

I got it now. It was not mensioned in the HFSJ. How do you know about this TagAdapter class. So may be I'm missing many concepts like these which are not given in HFSJ.
Please tell where did you find this. I'm preparing only HFSJ . tell me which books your reffering.
 
deepa raj
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am referring only HFSJ 2nd Edition .

Chapter 10 : Page Number : 570 (Bottom Right Corner Marked with *) .

Note : Need to check with 1st edition. It may be there also.
 
Amruth Puppala
Ranch Hand
Posts: 295
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have also seen but didn't put the attention thanks once again.
[ August 04, 2008: Message edited by: Chintu sirivennela ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic