A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
Win a copy of
Arduino in Action
this week in the
General Computing
forum!
A special promo:
Enter your blog post or vote on a blogger to be featured in an upcoming Journal
JavaRanch
»
Java Forums
»
Certification
»
Web Component Certification (SCWCD/OCPJWCD)
Author
Question from HF second edition
Tyronne Fernando
Ranch Hand
Joined: May 11, 2008
Posts: 50
posted
Nov 11, 2008 06:05:00
0
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
I like...
posted
Nov 11, 2008 08:41:00
0
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
posted
Nov 11, 2008 09:29:00
0
Hi ,
I think E is also correct answer.
Seetharaman Venkatasamy
Ranch Hand
Joined: Jan 28, 2008
Posts: 5575
I like...
posted
Nov 11, 2008 09:32:00
0
E. <%@ attribute name=�name� [B]value=�blank�[/B] type=�java.lang.String� %>
there is no value attribute in attribute directory.
Hope this helps
I agree. Here's the link:
http://zeroturnaround.com/jrebel
- it saves me about five hours per week
subject: Question from HF second edition
Similar Threads
HJSP errata for 1st edition
HFSJ Chapter 10 question doubt
HFSJ Mock Exam question on error-page tag
HFSJ Mock Exam
Final Mock exam question
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter