试题详情
- 单项选择题 You are creating a content management system (CMS) with a web application front-end. The JSP thatdisplays a given document in the CMS has the following general structure: 1. <%-- tag declaration --%> 2.
... 11. The citation tag must store information in the document tag for the document tag to generate a referencesection at the end of the generated web page. The document tag handler follows the Classic tag model andthe citation tag handler follows the Simple tag model. Furthermore, the citation tag could also be embeddedin other custom tags that could have either the Classic or Simple tag handler model. Which tag handlermethod allows the citation tag to access the document tag?()... ... 99.... A、public void doTag() {JspTag docTag = findAncestorWithClass(this, DocumentTag.class); ((DocumentTag)docTag).addCitation(this.docID);}
B、public void doStartTag() {JspTag docTag = findAncestorWithClass(this, DocumentTag.class); ((DocumentTag)docTag).addCitation(this.docID);}
C、public void doTag() {. Tag docTag = findAncestor(this, DocumentTag.class); . ((DocumentTag)docTag).addCitation(this.docID);. }
D、public void doStartTag() {. Tag docTag = findAncestor(this, DocumentTag.class); . ((DocumentTag)docTag).addCitation(this.docID);. }
- A
关注下方微信公众号,在线模考后查看
热门试题
- Which two̳
- Which construc
- 以下关于Applet和Java程序之间关
- 下面函数将返回()。
- 下列关于Java对象清除的叙述正确的是哪
- public class&e
- 函数调用的多态性涉及到程序运行时的后期绑
- 构造函数名称可以与方法名称相同
- What is
- 11. class&ensp
- 有一堆零件(零件个数不超过1000),如
- A programmer&e
- Given theQ
- You want
- 可以通过继承哪个类来创建线程?̳
- package test;&
- 编程生成100个1~6之间的随机数,统计
- 如果一个方法或变量是"private"访
- What is th
- BufferedWriter对象中的ne