aspose file tools
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes HFSJ- Custom Tag dev - Q 17 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 "HFSJ- Custom Tag dev - Q 17" Watch "HFSJ- Custom Tag dev - Q 17" New topic
Author

HFSJ- Custom Tag dev - Q 17

Prasad Tamirisa
Ranch Hand

Joined: Mar 26, 2007
Posts: 130
Hi all,

This is about a question in Chapter 10 of HFSJ. The question goes like this.

Given a tag, SimpleTag, whose handler is implemented using the Simple tag model and a tag, ComplexTag, whose handler is implemented using the Classic tag model. Both tags are declared to be non-emply in the TLD.

Which JSP code snippets are valid uses of these tag?



And the correct option is ambiguous. The book says, Option A is correct.
A.
<my:simpleTag>
<my:complexTag/>
</my:simpleTag>


How can this be correct..?? Simple tag has a body... but what about complex tag.?? According to TLD it should also have the body.

Please suggest.


Regards,
Durga Prasad
Musab Al-Rawi
Ranch Hand

Joined: Aug 06, 2007
Posts: 231
It can have a body but it doesn't have to.


SCBCD - SCWCD - SCJD - SCJP - OCA
Prasad Tamirisa
Ranch Hand

Joined: Mar 26, 2007
Posts: 130
Originally posted by Musab Al-Rawi:
It can have a body but it doesn't have to.


This is contradictory to the following.

Both tags are declared to be non-emply in the TLD.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: HFSJ- Custom Tag dev - Q 17
 
Similar Threads
HFSJ mock Q
HFSJ - Page 557 - Question 17
HFSJ - Custom Tag Development - Question 17 (Page 567)
Simple Tag & Classic Tag handler mock exam question - what's YOUR answer?
Doubts in Mock exam HFSJ