aspose file tools*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Simple and Classic tags understanding Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of JavaScript Promises Essentials this week in the JavaScript forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Simple and Classic tags understanding" Watch "Simple and Classic tags understanding" New topic
Author

Simple and Classic tags understanding

Amruth Puppala
Ranch Hand

Joined: Jul 14, 2008
Posts: 295
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


SCJP 5 |SCWCD 5| Started thinking about Web Services ?
deepa raj
Ranch Hand

Joined: Jul 25, 2008
Posts: 124


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

Joined: Jul 14, 2008
Posts: 295
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

Joined: Jul 25, 2008
Posts: 124
Hope this helps. TagAdapter Class.


Amruth Puppala
Ranch Hand

Joined: Jul 14, 2008
Posts: 295
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

Joined: Jul 25, 2008
Posts: 124
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

Joined: Jul 14, 2008
Posts: 295
I have also seen but didn't put the attention thanks once again.
[ August 04, 2008: Message edited by: Chintu sirivennela ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Simple and Classic tags understanding