aspose file tools*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Question from HF second edition 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 "Question from HF second edition" Watch "Question from HF second edition" New topic
Author

Question from HF second edition

Tyronne Fernando
Ranch Hand

Joined: May 11, 2008
Posts: 50
The following question is from HF second edition (page 599)

Which are valid in tag files? (Choose all that apply.)

A. <jsp oBody />
B. <jsp:invoke fragment=�frag� />
C. <%@ page import=�java.util.Date� %>
D. <%@ variable name-given=�date�
variable-class=�java.util.Date� %>
E. <%@ attribute name=�name� value=�blank�
type=�java.lang.String� %>

The correct answers given are : A, B, D

I am just not sure what is the syntax in answer D. Is there a variable directive? Can someone please explain? Thanks in advance.

I couldn't find any correction to this in the http://oreilly.com/catalog/9780596516680/errata/9780596516680.0708
Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

Originally posted by Tyronne Fernando:
Is there a variable directive?

Yes. this may help you
Praveen Kumar
Ranch Hand

Joined: Nov 06, 2006
Posts: 133
Hi ,



I think E is also correct answer.
Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575



there is no value attribute in attribute directory.

Hope this helps
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Question from HF second edition