• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Simple and Classic tags understanding

 
Ranch Hand
Posts: 295
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hope this helps. TagAdapter Class.


 
Amruth Puppala
Ranch Hand
Posts: 295
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
reply
    Bookmark Topic Watch Topic
  • New Topic