当前位置:SCDCD(310-081)题库

问题:

[单选]


The tag handler for n:recurse extends SimpleTagSupport.Assuming an n:recurse tag can either contain an empty body or another n:recurse tag, which strategy allows the tag handler for n:recurse to output the nesting depth of the deepest n:recurse tag?()  

A .  It is impossible to determine the deepest nesting depth because it is impossible for tag handlers that extend SimpleTagSupport to communicate with their parent and child tags
B .  Create a private non-static attribute in the tag handler class called count of type int initialized to      oIncrement count in the doTag method. If the tag has a body, invoke the fragment for that body. Otherwise, output the value of count
C .  Start a counter at 1. Call getChildTags(). If it returns null, output the value of the counter.      Otherwise, increment counter and continue from where getChildTags() is called. Skip      processing of the body.
D .  If the tag has a body, invoke the fragment for that body. Otherwise, start a counter at 1. Call      getParent(). If it returns null, output the value of the counter. Otherwise, increment the counter      and continue from where getParent() is called.

压力管道操作人员应负有()职责。 制止任何部门任意变更设计单位设计规定的参数。 不得安排无证操作人员上岗操作压力管道。 接管紧固件损坏,难以保证安全时,应立即采取紧急措施,并向现场管理人员和单位有关负责人报告。 经常对压力管道操作人员进行安全教育,提高压力管道操作人员的安全意识,制止无证人员上岗操作。 我国报纸印刷质的国家标准中最常用的判定指标是() 图片。 版面。 印纹。 密度。 In which two locations can the Nexus 1000v VSM be depIoyed?() Control Plane Virtual Appliance。 Control Plane Physical Appliance。 Control Plane Virtual ESX Switch。 Control Plane Physical ESX Switch。 抑郁症与一般的不高兴有本质的区别,抑郁症的三大症状是() 情绪低落。 脾气暴躁。 思维迟缓。 运动抑制。 Assume the tag handler for a st:simpletag extends SimpleTagSupport. In what way can scriptlet code be used in the body of st:simple?()  Set the body content type to JSP in the TLD。  Scriptlet code is NOT legal in the body of st:simple。  Add scripting-enabled= “true” to the start tag for the st:simple element。  Add a pass-through Classic tag with a body content type of JSP to the body of st:simple, and      place the scriptlet code in the body of that tag.。


The tag handler for n:recurse extends SimpleTagSupport.Assuming an n:recurse tag can either contain an empty body or another n:recurse tag, which strategy allows the tag handler for n:recurse to output the nesting depth of the deepest n:recurse tag?()  

参考答案:

  参考解析

本题暂无解析

在线 客服