可学答题网 > 问答 > SCWCD(310-083)题库
目录: 标题| 题干| 答案| 搜索| 相关
问题

You are creating a&ens


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. <t:document> ... 11. <t:paragraph>... <t:citation docID=’xyz’ /> ...</t:paragraph> ... 99. </t:document> 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?()

  • Apublic void doTag() {JspTag docTag = findAncestorWithClass(this, DocumentTag.class); ((DocumentTag)docTag).addCitation(this.docID);}
  • Bpublic void doStartTag() {JspTag docTag = findAncestorWithClass(this, DocumentTag.class); ((DocumentTag)docTag).addCitation(this.docID);}
  • Cpublic void doTag() {. Tag docTag = findAncestor(this, DocumentTag.class); . ((DocumentTag)docTag).addCitation(this.docID);. }
  • Dpublic void doStartTag() {. Tag docTag = findAncestor(this, DocumentTag.class); . ((DocumentTag)docTag).addCitation(this.docID);. }
参考答案
参考解析:
分类:SCWCD(310-083)题库
相关推荐

1、You are creating a&ens

You&ensp;are&ensp;creating&ensp;a&ensp;Windows&ensp;Forms&ensp;application&ensp;for&ensp;inventory&ensp;management&ensp;by&ensp;using&ensp;the&ensp;.NET&ensp;Framewo...

2、You are creating a&ens

You&ensp;are&ensp;creating&ensp;a&ensp;locally&ensp;managed&ensp;tablespace&ensp;to&ensp;meet&ensp;the&ensp;following&ensp;requirements:&ensp;All&ensp;the&ensp;exte...

3、You are creating a&ens

You&ensp;are&ensp;creating&ensp;a&ensp;Windows&ensp;Forms&ensp;application&ensp;by&ensp;using&ensp;the&ensp;.NET&ensp;Framework&ensp;3.5.&ensp;You&ensp;have&ensp;imp...

4、You are creating a&ens

You&ensp;are&ensp;creating&ensp;a&ensp;new&ensp;security&ensp;policy&ensp;for&ensp;an&ensp;application&ensp;domain.&ensp;You&ensp;write&ensp;the&ensp;following&ensp;...

5、You are creating a&ens

You&ensp;are&ensp;creating&ensp;a&ensp;SQL&ensp;Server&ensp;2005&ensp;database&ensp;for&ensp;a&ensp;mortgage&ensp;company.&ensp;The&ensp;database&ensp;will&ensp;supp...

6、You are creating a&ens

You&ensp;are&ensp;creating&ensp;a&ensp;Windows&ensp;Forms&ensp;application&ensp;by&ensp;using&ensp;the&ensp;.NET&ensp;Framework&ensp;3.5.You&ensp;need&ensp;to&ensp;p...