试题详情
多项选择题 A web application contains a tag file called beta.tag in /WEB-INF/tags/alpha. A JSP page called sort.jspexists in the web application and contains only this JSP code: 1.<%@ taglib prefix="x" 2.tagdir="/WEB-INF/tags/alpha" %> 3. The sort.jsp page is requested. Which two are true?()

A、Tag files can only be accessed using a tagdir attribute.

B、The sort.jsp page translates successfully and invokes the tag defined by beta.tag.

C、The sort.jsp page produces a translation error because a taglib directive must always have a uriattribute.

D、Tag files can only be placed in /WEB-INF/tags, and NOT in any subdirectories of /WEB- INF/tags.

E、The tagdir attribute in line 2 can be replaced by a uri attribute if a TLD referring to beta.tag is createdand added to the web application.

  • B,E
  • 关注下方微信公众号,在线模考后查看

热门试题