This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Tag Extensions Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Reply Bookmark "Tag Extensions " Watch "Tag Extensions " New topic
Author

Tag Extensions

Kamal Tripathi
Ranch Hand

Joined: Oct 02, 2008
Posts: 86

1) Parents Topic

as per what I understood is that simple tags can take both simple as well as classic tags as parents but for classic tags to have simple tags as parents, we might need to use Tag Adapter class.

I wanted to know if for exam considerations.



This is a valid combination ??? Since HFSJ didn't discuss TagAdapter classes, I was of impression that this should not be considered a valid option per exam objectives.

2) Body-Content

JSPFragments don't support scripting so that means that we can't pass on scriptlets in the body of SimpleTag? And webapp won't be deployed if in the TLD I set <body-content> value to be JSP ??

What about ClassicTags. It is not possible to find out from the TLD whether a tag is simple or classic one so how would the entry of JSP for <body-content> be invalidated only for SimpleTags


Kamal Tripathi
SCJP 1.4 90%, SCWCD5 94%, Next SCDJWS--> In Naescent stage. Researching abt exam and material itself.
Poonam Agarwal
Ranch Hand

Joined: May 12, 2008
Posts: 323
1) Parents Topic



Yes this a valid combination. simpleTags can have classic parents and classicTag can also have simpleTag as their parent , but for that it require little extra work. TagAdapter will do the work for you. beacuse classicTag's getParent() method returns the Tag , but simpleTag 's getParent() methos retuens the JspTag. so extra work is needed here to type cast the Tag to JspTag.

Please refer to the JSP specification 2.0 for more detail


Thanks <br />Poonam Agarwal SCWCD 86%
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tag Extensions
 
Similar Threads
HFSJ - Page 557 - Question 17
Qn 17 Page557
Simple Tag & Classic Tag handler mock exam question - what's YOUR answer?
Doubts in Mock exam HFSJ
Parents of Simple - Classic tags