• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Question from HF second edition

 
Tyronne Fernando
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5575
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Tyronne Fernando:
Is there a variable directive?

Yes. this may help you
 
Praveen Kumar
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,



I think E is also correct answer.
 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


there is no value attribute in attribute directory.

Hope this helps
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic