• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Regarding Tag libraries

 
Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I am following Hanumant Deshmukh material for preparation of SCWCD Exam.I have small query regarding the following question.Can Anybody expalain the below question?

Which three are valid values for the body-content attribute of a tag directive
in a tag file? (Choose three.)

A. EL
B. JSP
C. empty
D. dynamic
E. scriptless
F. tagdependent
Answer: C, E, F

In the above question we can accept option B also for body-content attribute.But why they are saying it is not a correct option.

With Regards,
Rama Krishna.Y
 
Sheriff
Posts: 9707
43
Android Google Web Toolkit Hibernate IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Tag files themselves can contain scriptlets, but the body content of tag file's tag must be scriptles so JSP cannot be set as the body content. Read this for more info...
 
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
and to add new info - in "Simple" Custom tags you can only use body content: scriptless, empty and tagdependent. You can't user JSP because JspFragment (which is actually body of the tag) can't have any scripting elements.
 
reply
    Bookmark Topic Watch Topic
  • New Topic