File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Study kit review Question doubt Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Study kit review Question doubt" Watch "Study kit review Question doubt" New topic
Author

Study kit review Question doubt

Renu Radhika
Ranch Hand

Joined: Oct 21, 2005
Posts: 243
You are given a tag library that has a tag named printReport. This tag may
accept an attribute, department, which cannot take a dynamic value. Which
of the following are correct uses of this tag? (Select two)
a <mylib rintReport/>
b <mylib rintReport department="finance"/>
c <mylib rintReport attribute="department" value="finance"/>
d <mylib rintReport attribute="department"
attribute-value="finance"/>
e <mylib rintReport>
<jsp:attribute name="department" value="finance" />
</mylib rintReport>

I thought the answer is b and e but the book say a and b
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

This tag may accept an attribute department, so "a" and "b" are correct.

About "e", there is no "value" attribute in the jsp:attribute action. You must use its body to set something. Like :


[My Blog]
All roads lead to JavaRanch
K Sanjeet
Greenhorn

Joined: Oct 12, 2004
Posts: 11
I think e is also correct since its just the same thing as b. So b and e look to be correct to me. Please correct me if I am wrong.
Renu Radhika
Ranch Hand

Joined: Oct 21, 2005
Posts: 243
Thanks Santou.It made sense to me :-)
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

Sanjeetz,
Please reread my last post and you will see that the jsp:attribute tag has no "value" attribute.

Also, could you please check the ranch's Naming Policy and change your name accordingly ? Thank you
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Study kit review Question doubt