Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Regarding Tag libraries

 
yekkala krishna
Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
  • 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
 
Ankit Garg
Sheriff
Posts: 9580
33
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • 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...
 
Łukasz Suchecki
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic