SlideShare a Scribd company logo
1 of 22
Download to read offline
Skillytaire
10 sample questions about Dynamic Attributes (CX-310-083)
Tems of useTems of use
2
You may use this document for your own purpose only if you leave the document as is.
© Copyright 2010 Prolector.
For more information please visit http://www.prolector.nl
You may use this document for your own purpose only if you leave the document as is.
© Copyright 2010 Prolector.
For more information please visit http://www.prolector.nl
Question 1:Question 1:
3
Dynamic Attributes can be applied in:
ServletsA
JSPB
Tag FileC
Classic TagD
Modern TagE
Simple TagF
Every class that implements javax.servlet.jsp.tagext.JspTagG
Question 1:Question 1:
4
Dynamic Attributes can be applied in:
ServletsA
JSPB
Tag FileC
Classic TagD
Modern TagE
Simple TagF
Every class that implements javax.servlet.jsp.tagext.JspTagG
Question 2:Question 2:
5
In order to have dynamic attribues working for a tag file you need to do the following:
implement the interface javax.servlet.jsp.tags.DynamicAttributesA
you must add dynamic-attributes to the tag directiveB
implement the interface javax.servlet.jsp.tagext.DynamicAttributesC
Add <dynamic-attributes>true</dynamic-attributes> in the tldD
You must configure the tld in the web.xml in jsp-config sectionE
Question 2:Question 2:
6
In order to have dynamic attribues working for a tag file you need to do the following:
implement the interface javax.servlet.jsp.tags.DynamicAttributesA
you must add dynamic-attributes to the tag directiveB
implement the interface javax.servlet.jsp.tagext.DynamicAttributesC
Add <dynamic-attributes>true</dynamic-attributes> in the tldD
You must configure the tld in the web.xml in jsp-config sectionE
Question 3:Question 3:
7
Dynamic Attributes must be configured in the TLD of the tag:
TrueA
FalseB
Question 3:Question 3:
8
Dynamic Attributes must be configured in the TLD of the tag:
TrueA
FalseB
Question 4:Question 4:
9
Choose the correct directive for a tag file that should use dynamic attributes:
<%@ tag body-content="empty" dynamic-attributes="dynamicAttributes" %>A
<%@ tag body-content="empty" dynamic-attribute="dynamicAttributes" %>B
<%@tag body-content="empty" dynamic-attributes="variables" %>C
<%@tag body-content="empty" dynamic-attribute="variables" %>D
Question 4:Question 4:
10
Choose the correct directive for a tag file that should use dynamic attributes:
<%@ tag body-content="empty" dynamic-attributes="dynamicAttributes" %>A
<%@ tag body-content="empty" dynamic-attribute="dynamicAttributes" %>B
<%@tag body-content="empty" dynamic-attributes="variables" %>C
<%@tag body-content="empty" dynamic-attribute="variables" %>D
Question 5:Question 5:
11
If an tag is declared in a tld, which xml child element of tag should be placed to enable
dynamic properties:
<auto-attributes>true</auto-attributes>A
<auto-wire>true</auto-wire>B
<dynamic-attributes>true</dynamic-attributes>C
<dynamic-attribute>true</dynamic-attribute>D
<dynamic-properties>true</dynamic-properties>E
Question 5:Question 5:
12
If an tag is declared in a tld, which xml child element of tag should be placed to enable
dynamic properties:
<auto-attributes>true</auto-attributes>A
<auto-wire>true</auto-wire>B
<dynamic-attributes>true</dynamic-attributes>C
<dynamic-attribute>true</dynamic-attribute>D
<dynamic-properties>true</dynamic-properties>E
Question 6:Question 6:
13
Given the following tag code:
<%@ tag body-content="empty" dynamic-attributes="dynatrs" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<table>
<c:forEach items="${dynattrs}" var="element">
<tr>
<td>${element.key}</td>
<td>${element.value}</td>
</tr>
</c:forEach>
</table>
what will the result be for <myTags:demo myAttribute="een waarde"/> ?
<table><tr><td>myAttribute</td><td>een waarde</td></tr></table>A
<table><tr><td>een waarde</td><td>myAttribute</td></tr></table>B
<table><tr><td></td><td></td></tr></table>C
<table></table>D
An exception will be throw at runtimeE
None of the aboveF
Question 6:Question 6:
14
Given the following tag code:
<%@ tag body-content="empty" dynamic-attributes="dynatrs" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<table>
<c:forEach items="${dynattrs}" var="element">
<tr>
<td>${element.key}</td>
<td>${element.value}</td>
</tr>
</c:forEach>
</table>
what will the result be for <myTags:demo myAttribute="een waarde"/> ?
<table><tr><td>myAttribute</td><td>een waarde</td></tr></table>A
<table><tr><td>een waarde</td><td>myAttribute</td></tr></table>B
<table><tr><td></td><td></td></tr></table>C
<table></table>D
An exception will be throw at runtimeE
None of the aboveF
Question 7:Question 7:
15
Given the following tag code:
<%@ tag body-content="empty" dynamic-attributes="dynattrs" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<table>
<c:forEach items="${dynattrs}" var="element">
<tr>
<td>${element.key}</td>
<td>${element.value}</td>
</tr>
</c:forEach>
</table>
what will the result be for <myTags:demo myAttribute="een waarde"/> ?
<table><tr><td>myAttribute</td><td>een waarde</td></tr></table>A
<table><tr><td>een waarde</td><td>myAttribute</td></tr></table>B
<table><tr><td></td><td></td></tr></table>C
<table></table>D
An exception will be throw at runtimeE
None of the aboveF
Question 7:Question 7:
16
Given the following tag code:
<%@ tag body-content="empty" dynamic-attributes="dynattrs" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<table>
<c:forEach items="${dynattrs}" var="element">
<tr>
<td>${element.key}</td>
<td>${element.value}</td>
</tr>
</c:forEach>
</table>
what will the result be for <myTags:demo myAttribute="een waarde"/> ?
<table><tr><td>myAttribute</td><td>een waarde</td></tr></table>A
<table><tr><td>een waarde</td><td>myAttribute</td></tr></table>B
<table><tr><td></td><td></td></tr></table>C
<table></table>D
An exception will be throw at runtimeE
None of the aboveF
Question 8:Question 8:
17
In order to have dynamic attributes working for a simple tag you need to do the
following:
implement the interface javax.servlet.jsp.tagext.DynamicAttributesA
you must add dynamic-attributes to the tag directiveB
implement the interface javax.servlet.jsp.tags.DynamicAttributesC
Add <dynamic-attributes>true</dynamic-attributes> in the tldD
You must configure the tld in the web.xml in jsp-config sectionE
Question 8:Question 8:
18
In order to have dynamic attributes working for a simple tag you need to do the
following:
implement the interface javax.servlet.jsp.tagext.DynamicAttributesA
you must add dynamic-attributes to the tag directiveB
implement the interface javax.servlet.jsp.tags.DynamicAttributesC
Add <dynamic-attributes>true</dynamic-attributes> in the tldD
You must configure the tld in the web.xml in jsp-config sectionE
Question 9:Question 9:
19
In order to have dynamic attributes working for a classic tag you need to do the
following:
implement the interface javax.servlet.jsp.tags.DynamicAttributesA
you must add dynamic-attributes to the tag directiveB
implement the interface javax.servlet.jsp.tagext.DynamicAttributesC
Add <dynamic-attributes>true</dynamic-attributes> in the tldD
You must configure the tld in the web.xml in jsp-config sectionE
Question 9:Question 9:
20
In order to have dynamic attributes working for a classic tag you need to do the
following:
implement the interface javax.servlet.jsp.tags.DynamicAttributesA
you must add dynamic-attributes to the tag directiveB
implement the interface javax.servlet.jsp.tagext.DynamicAttributesC
Add <dynamic-attributes>true</dynamic-attributes> in the tldD
You must configure the tld in the web.xml in jsp-config sectionE
Question 10:Question 10:
21
Given a simple tag that has configured in the tld only one attribute 'name' and has
support for dynamic attributes. Given the following snippet how many time will the
method setDynamicAttribute be invoked?
<myTags:dynamicSimpleTag myAttribute="een waarde" enNogEenAttribute="enz..."
name="name"/>
0A
1B
2C
3D
4E
Question 10:Question 10:
22
Given a simple tag that has configured in the tld only one attribute 'name' and has
support for dynamic attributes. Given the following snippet how many time will the
method setDynamicAttribute be invoked?
<myTags:dynamicSimpleTag myAttribute="een waarde" enNogEenAttribute="enz..."
name="name"/>
0A
1B
2C
3D
4E

More Related Content

What's hot

Beginning AngularJS
Beginning AngularJSBeginning AngularJS
Beginning AngularJSTroy Miles
 
Spring andspringboot training
Spring andspringboot trainingSpring andspringboot training
Spring andspringboot trainingMallikarjuna G D
 
Dexterity in the Wild
Dexterity in the WildDexterity in the Wild
Dexterity in the WildDavid Glick
 
Lambda Expressions in Java | Java Lambda Tutorial | Java Certification Traini...
Lambda Expressions in Java | Java Lambda Tutorial | Java Certification Traini...Lambda Expressions in Java | Java Lambda Tutorial | Java Certification Traini...
Lambda Expressions in Java | Java Lambda Tutorial | Java Certification Traini...Edureka!
 
AngularJS Beginner Day One
AngularJS Beginner Day OneAngularJS Beginner Day One
AngularJS Beginner Day OneTroy Miles
 
Jdbc Complete Notes by Java Training Center (Som Sir)
Jdbc Complete Notes by Java Training Center (Som Sir)Jdbc Complete Notes by Java Training Center (Som Sir)
Jdbc Complete Notes by Java Training Center (Som Sir)Som Prakash Rai
 
Lecture 4: JavaServer Pages (JSP) & Expression Language (EL)
Lecture 4:  JavaServer Pages (JSP) & Expression Language (EL)Lecture 4:  JavaServer Pages (JSP) & Expression Language (EL)
Lecture 4: JavaServer Pages (JSP) & Expression Language (EL)Fahad Golra
 
Java script Examples by Som
Java script Examples by Som  Java script Examples by Som
Java script Examples by Som Som Prakash Rai
 
Wicket Next (1.4/1.5)
Wicket Next (1.4/1.5)Wicket Next (1.4/1.5)
Wicket Next (1.4/1.5)jcompagner
 
Ruby On Rails Tutorial
Ruby On Rails TutorialRuby On Rails Tutorial
Ruby On Rails Tutorialsunniboy
 
Java interview questions
Java interview questionsJava interview questions
Java interview questionsSoba Arjun
 
Vaadin Components @ Angular U
Vaadin Components @ Angular UVaadin Components @ Angular U
Vaadin Components @ Angular UJoonas Lehtinen
 
JSP - Java Server Page
JSP - Java Server PageJSP - Java Server Page
JSP - Java Server PageVipin Yadav
 

What's hot (15)

Beginning AngularJS
Beginning AngularJSBeginning AngularJS
Beginning AngularJS
 
Spring andspringboot training
Spring andspringboot trainingSpring andspringboot training
Spring andspringboot training
 
Dexterity in the Wild
Dexterity in the WildDexterity in the Wild
Dexterity in the Wild
 
Lambda Expressions in Java | Java Lambda Tutorial | Java Certification Traini...
Lambda Expressions in Java | Java Lambda Tutorial | Java Certification Traini...Lambda Expressions in Java | Java Lambda Tutorial | Java Certification Traini...
Lambda Expressions in Java | Java Lambda Tutorial | Java Certification Traini...
 
AngularJS Beginner Day One
AngularJS Beginner Day OneAngularJS Beginner Day One
AngularJS Beginner Day One
 
Core java introduction
Core java introduction Core java introduction
Core java introduction
 
Jdbc Complete Notes by Java Training Center (Som Sir)
Jdbc Complete Notes by Java Training Center (Som Sir)Jdbc Complete Notes by Java Training Center (Som Sir)
Jdbc Complete Notes by Java Training Center (Som Sir)
 
EJB Part-1
EJB Part-1EJB Part-1
EJB Part-1
 
Lecture 4: JavaServer Pages (JSP) & Expression Language (EL)
Lecture 4:  JavaServer Pages (JSP) & Expression Language (EL)Lecture 4:  JavaServer Pages (JSP) & Expression Language (EL)
Lecture 4: JavaServer Pages (JSP) & Expression Language (EL)
 
Java script Examples by Som
Java script Examples by Som  Java script Examples by Som
Java script Examples by Som
 
Wicket Next (1.4/1.5)
Wicket Next (1.4/1.5)Wicket Next (1.4/1.5)
Wicket Next (1.4/1.5)
 
Ruby On Rails Tutorial
Ruby On Rails TutorialRuby On Rails Tutorial
Ruby On Rails Tutorial
 
Java interview questions
Java interview questionsJava interview questions
Java interview questions
 
Vaadin Components @ Angular U
Vaadin Components @ Angular UVaadin Components @ Angular U
Vaadin Components @ Angular U
 
JSP - Java Server Page
JSP - Java Server PageJSP - Java Server Page
JSP - Java Server Page
 

Viewers also liked

Aparello respiratorio
Aparello respiratorioAparello respiratorio
Aparello respiratoriopillara
 
Gastcollege Saxion - Minor Web Presence
Gastcollege Saxion - Minor Web PresenceGastcollege Saxion - Minor Web Presence
Gastcollege Saxion - Minor Web PresenceBart Ensink
 
O sistema dixestivo
O sistema dixestivoO sistema dixestivo
O sistema dixestivopillara
 
9 sample questions about Resource References (Cx 310 083)
9 sample questions about Resource References (Cx 310 083)9 sample questions about Resource References (Cx 310 083)
9 sample questions about Resource References (Cx 310 083)Maarten Storm
 
O aparello circulatorio
O aparello circulatorioO aparello circulatorio
O aparello circulatoriopillara
 
Plan anual de sistemas monousuario y multiusuario
Plan anual de sistemas monousuario y multiusuarioPlan anual de sistemas monousuario y multiusuario
Plan anual de sistemas monousuario y multiusuariomiguel15de1987
 

Viewers also liked (8)

Aparello respiratorio
Aparello respiratorioAparello respiratorio
Aparello respiratorio
 
Gastcollege Saxion - Minor Web Presence
Gastcollege Saxion - Minor Web PresenceGastcollege Saxion - Minor Web Presence
Gastcollege Saxion - Minor Web Presence
 
OCWCD Hoofdstuk 3
OCWCD Hoofdstuk 3OCWCD Hoofdstuk 3
OCWCD Hoofdstuk 3
 
O sistema dixestivo
O sistema dixestivoO sistema dixestivo
O sistema dixestivo
 
9 sample questions about Resource References (Cx 310 083)
9 sample questions about Resource References (Cx 310 083)9 sample questions about Resource References (Cx 310 083)
9 sample questions about Resource References (Cx 310 083)
 
O aparello circulatorio
O aparello circulatorioO aparello circulatorio
O aparello circulatorio
 
Plan anual de sistemas monousuario y multiusuario
Plan anual de sistemas monousuario y multiusuarioPlan anual de sistemas monousuario y multiusuario
Plan anual de sistemas monousuario y multiusuario
 
Assembly
AssemblyAssembly
Assembly
 

Similar to 10 sample questions about Dynamic Attributes (CX-310-083)

HTML 5: Attributes
HTML 5: AttributesHTML 5: Attributes
HTML 5: AttributesReema
 
Self healing test automation with Healenium and Minimization of regression su...
Self healing test automation with Healenium and Minimization of regression su...Self healing test automation with Healenium and Minimization of regression su...
Self healing test automation with Healenium and Minimization of regression su...Dmitriy Gumeniuk
 
Migrating from JSF1 to JSF2
Migrating from JSF1 to JSF2Migrating from JSF1 to JSF2
Migrating from JSF1 to JSF2tahirraza
 
IE8 Dev Overview_pp2003
IE8 Dev Overview_pp2003IE8 Dev Overview_pp2003
IE8 Dev Overview_pp2003Wes Yanaga
 
Transformation of Java Server Pages: A Modern Approach
Transformation of Java Server Pages: A Modern ApproachTransformation of Java Server Pages: A Modern Approach
Transformation of Java Server Pages: A Modern ApproachIRJET Journal
 
Django Rest Framework and React and Redux, Oh My!
Django Rest Framework and React and Redux, Oh My!Django Rest Framework and React and Redux, Oh My!
Django Rest Framework and React and Redux, Oh My!Eric Palakovich Carr
 
Bt0083 server side programing 2
Bt0083 server side programing  2Bt0083 server side programing  2
Bt0083 server side programing 2Techglyphs
 

Similar to 10 sample questions about Dynamic Attributes (CX-310-083) (20)

HTML 5: Attributes
HTML 5: AttributesHTML 5: Attributes
HTML 5: Attributes
 
Jstl 8
Jstl 8Jstl 8
Jstl 8
 
Self healing test automation with Healenium and Minimization of regression su...
Self healing test automation with Healenium and Minimization of regression su...Self healing test automation with Healenium and Minimization of regression su...
Self healing test automation with Healenium and Minimization of regression su...
 
Migrating from JSF1 to JSF2
Migrating from JSF1 to JSF2Migrating from JSF1 to JSF2
Migrating from JSF1 to JSF2
 
IE8 Dev Overview_pp2003
IE8 Dev Overview_pp2003IE8 Dev Overview_pp2003
IE8 Dev Overview_pp2003
 
4. jsp
4. jsp4. jsp
4. jsp
 
Html5 tutorial
Html5 tutorialHtml5 tutorial
Html5 tutorial
 
Html5 - Tutorial
Html5 - TutorialHtml5 - Tutorial
Html5 - Tutorial
 
JSTL.pptx
JSTL.pptxJSTL.pptx
JSTL.pptx
 
Transformation of Java Server Pages: A Modern Approach
Transformation of Java Server Pages: A Modern ApproachTransformation of Java Server Pages: A Modern Approach
Transformation of Java Server Pages: A Modern Approach
 
Html5 tutorial
Html5 tutorialHtml5 tutorial
Html5 tutorial
 
Html5 tutorial
Html5 tutorialHtml5 tutorial
Html5 tutorial
 
Html5 tutorial
Html5 tutorialHtml5 tutorial
Html5 tutorial
 
Html5 tutorial
Html5 tutorialHtml5 tutorial
Html5 tutorial
 
Html5 tutorial
Html5 tutorialHtml5 tutorial
Html5 tutorial
 
Django Rest Framework and React and Redux, Oh My!
Django Rest Framework and React and Redux, Oh My!Django Rest Framework and React and Redux, Oh My!
Django Rest Framework and React and Redux, Oh My!
 
RicoLiveGrid
RicoLiveGridRicoLiveGrid
RicoLiveGrid
 
RicoLiveGrid
RicoLiveGridRicoLiveGrid
RicoLiveGrid
 
Bt0083 server side programing 2
Bt0083 server side programing  2Bt0083 server side programing  2
Bt0083 server side programing 2
 
javascript
javascriptjavascript
javascript
 

10 sample questions about Dynamic Attributes (CX-310-083)

  • 1. Skillytaire 10 sample questions about Dynamic Attributes (CX-310-083)
  • 2. Tems of useTems of use 2 You may use this document for your own purpose only if you leave the document as is. © Copyright 2010 Prolector. For more information please visit http://www.prolector.nl You may use this document for your own purpose only if you leave the document as is. © Copyright 2010 Prolector. For more information please visit http://www.prolector.nl
  • 3. Question 1:Question 1: 3 Dynamic Attributes can be applied in: ServletsA JSPB Tag FileC Classic TagD Modern TagE Simple TagF Every class that implements javax.servlet.jsp.tagext.JspTagG
  • 4. Question 1:Question 1: 4 Dynamic Attributes can be applied in: ServletsA JSPB Tag FileC Classic TagD Modern TagE Simple TagF Every class that implements javax.servlet.jsp.tagext.JspTagG
  • 5. Question 2:Question 2: 5 In order to have dynamic attribues working for a tag file you need to do the following: implement the interface javax.servlet.jsp.tags.DynamicAttributesA you must add dynamic-attributes to the tag directiveB implement the interface javax.servlet.jsp.tagext.DynamicAttributesC Add <dynamic-attributes>true</dynamic-attributes> in the tldD You must configure the tld in the web.xml in jsp-config sectionE
  • 6. Question 2:Question 2: 6 In order to have dynamic attribues working for a tag file you need to do the following: implement the interface javax.servlet.jsp.tags.DynamicAttributesA you must add dynamic-attributes to the tag directiveB implement the interface javax.servlet.jsp.tagext.DynamicAttributesC Add <dynamic-attributes>true</dynamic-attributes> in the tldD You must configure the tld in the web.xml in jsp-config sectionE
  • 7. Question 3:Question 3: 7 Dynamic Attributes must be configured in the TLD of the tag: TrueA FalseB
  • 8. Question 3:Question 3: 8 Dynamic Attributes must be configured in the TLD of the tag: TrueA FalseB
  • 9. Question 4:Question 4: 9 Choose the correct directive for a tag file that should use dynamic attributes: <%@ tag body-content="empty" dynamic-attributes="dynamicAttributes" %>A <%@ tag body-content="empty" dynamic-attribute="dynamicAttributes" %>B <%@tag body-content="empty" dynamic-attributes="variables" %>C <%@tag body-content="empty" dynamic-attribute="variables" %>D
  • 10. Question 4:Question 4: 10 Choose the correct directive for a tag file that should use dynamic attributes: <%@ tag body-content="empty" dynamic-attributes="dynamicAttributes" %>A <%@ tag body-content="empty" dynamic-attribute="dynamicAttributes" %>B <%@tag body-content="empty" dynamic-attributes="variables" %>C <%@tag body-content="empty" dynamic-attribute="variables" %>D
  • 11. Question 5:Question 5: 11 If an tag is declared in a tld, which xml child element of tag should be placed to enable dynamic properties: <auto-attributes>true</auto-attributes>A <auto-wire>true</auto-wire>B <dynamic-attributes>true</dynamic-attributes>C <dynamic-attribute>true</dynamic-attribute>D <dynamic-properties>true</dynamic-properties>E
  • 12. Question 5:Question 5: 12 If an tag is declared in a tld, which xml child element of tag should be placed to enable dynamic properties: <auto-attributes>true</auto-attributes>A <auto-wire>true</auto-wire>B <dynamic-attributes>true</dynamic-attributes>C <dynamic-attribute>true</dynamic-attribute>D <dynamic-properties>true</dynamic-properties>E
  • 13. Question 6:Question 6: 13 Given the following tag code: <%@ tag body-content="empty" dynamic-attributes="dynatrs" %> <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> <table> <c:forEach items="${dynattrs}" var="element"> <tr> <td>${element.key}</td> <td>${element.value}</td> </tr> </c:forEach> </table> what will the result be for <myTags:demo myAttribute="een waarde"/> ? <table><tr><td>myAttribute</td><td>een waarde</td></tr></table>A <table><tr><td>een waarde</td><td>myAttribute</td></tr></table>B <table><tr><td></td><td></td></tr></table>C <table></table>D An exception will be throw at runtimeE None of the aboveF
  • 14. Question 6:Question 6: 14 Given the following tag code: <%@ tag body-content="empty" dynamic-attributes="dynatrs" %> <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> <table> <c:forEach items="${dynattrs}" var="element"> <tr> <td>${element.key}</td> <td>${element.value}</td> </tr> </c:forEach> </table> what will the result be for <myTags:demo myAttribute="een waarde"/> ? <table><tr><td>myAttribute</td><td>een waarde</td></tr></table>A <table><tr><td>een waarde</td><td>myAttribute</td></tr></table>B <table><tr><td></td><td></td></tr></table>C <table></table>D An exception will be throw at runtimeE None of the aboveF
  • 15. Question 7:Question 7: 15 Given the following tag code: <%@ tag body-content="empty" dynamic-attributes="dynattrs" %> <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> <table> <c:forEach items="${dynattrs}" var="element"> <tr> <td>${element.key}</td> <td>${element.value}</td> </tr> </c:forEach> </table> what will the result be for <myTags:demo myAttribute="een waarde"/> ? <table><tr><td>myAttribute</td><td>een waarde</td></tr></table>A <table><tr><td>een waarde</td><td>myAttribute</td></tr></table>B <table><tr><td></td><td></td></tr></table>C <table></table>D An exception will be throw at runtimeE None of the aboveF
  • 16. Question 7:Question 7: 16 Given the following tag code: <%@ tag body-content="empty" dynamic-attributes="dynattrs" %> <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> <table> <c:forEach items="${dynattrs}" var="element"> <tr> <td>${element.key}</td> <td>${element.value}</td> </tr> </c:forEach> </table> what will the result be for <myTags:demo myAttribute="een waarde"/> ? <table><tr><td>myAttribute</td><td>een waarde</td></tr></table>A <table><tr><td>een waarde</td><td>myAttribute</td></tr></table>B <table><tr><td></td><td></td></tr></table>C <table></table>D An exception will be throw at runtimeE None of the aboveF
  • 17. Question 8:Question 8: 17 In order to have dynamic attributes working for a simple tag you need to do the following: implement the interface javax.servlet.jsp.tagext.DynamicAttributesA you must add dynamic-attributes to the tag directiveB implement the interface javax.servlet.jsp.tags.DynamicAttributesC Add <dynamic-attributes>true</dynamic-attributes> in the tldD You must configure the tld in the web.xml in jsp-config sectionE
  • 18. Question 8:Question 8: 18 In order to have dynamic attributes working for a simple tag you need to do the following: implement the interface javax.servlet.jsp.tagext.DynamicAttributesA you must add dynamic-attributes to the tag directiveB implement the interface javax.servlet.jsp.tags.DynamicAttributesC Add <dynamic-attributes>true</dynamic-attributes> in the tldD You must configure the tld in the web.xml in jsp-config sectionE
  • 19. Question 9:Question 9: 19 In order to have dynamic attributes working for a classic tag you need to do the following: implement the interface javax.servlet.jsp.tags.DynamicAttributesA you must add dynamic-attributes to the tag directiveB implement the interface javax.servlet.jsp.tagext.DynamicAttributesC Add <dynamic-attributes>true</dynamic-attributes> in the tldD You must configure the tld in the web.xml in jsp-config sectionE
  • 20. Question 9:Question 9: 20 In order to have dynamic attributes working for a classic tag you need to do the following: implement the interface javax.servlet.jsp.tags.DynamicAttributesA you must add dynamic-attributes to the tag directiveB implement the interface javax.servlet.jsp.tagext.DynamicAttributesC Add <dynamic-attributes>true</dynamic-attributes> in the tldD You must configure the tld in the web.xml in jsp-config sectionE
  • 21. Question 10:Question 10: 21 Given a simple tag that has configured in the tld only one attribute 'name' and has support for dynamic attributes. Given the following snippet how many time will the method setDynamicAttribute be invoked? <myTags:dynamicSimpleTag myAttribute="een waarde" enNogEenAttribute="enz..." name="name"/> 0A 1B 2C 3D 4E
  • 22. Question 10:Question 10: 22 Given a simple tag that has configured in the tld only one attribute 'name' and has support for dynamic attributes. Given the following snippet how many time will the method setDynamicAttribute be invoked? <myTags:dynamicSimpleTag myAttribute="een waarde" enNogEenAttribute="enz..." name="name"/> 0A 1B 2C 3D 4E