Win a copy of 97 Things Every Java Programmer Should Know this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

Question from HF second edition

 
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
 
Ranch Hand
Posts: 5575
Eclipse IDE Windows XP Java
  • 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
 
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 Windows XP Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


there is no value attribute in attribute directory.

Hope this helps
 
Humans and their filthy friendship brings nothing but trouble. My only solace is this tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic