网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)
单选题
Given this fragment from a Java EE deployment descriptor: 341. 342.java.lang.Throwable  343./mainError.jsp 344. 345. 346.java.lang.ClassCastException  347./castError.jsp 348. If the web application associated with the fragment above throws a ClassCastException.Which statement is true?()
A

The deployment descriptor is invalid.

B

The container invokes mainError.jsp.

C

The container invokes castError.jsp.

D

Neither mainError.jsp nor castError.jsp is invoked.


参考答案

参考解析
解析: 暂无解析
更多 “单选题Given this fragment from a Java EE deployment descriptor: 341. 342.java.lang.Throwable  343./mainError.jsp 344. 345. 346.java.lang.ClassCastException  347./castError.jsp 348. If the web application associated with the fragment above throws a ClassCastException.Which statement is true?()A The deployment descriptor is invalid.B The container invokes mainError.jsp.C The container invokes castError.jsp.D Neither mainError.jsp nor castError.jsp is invoked.” 相关考题
考题 Which two actions protect a resource file from direct HTTP access within a web application?()A、Placing it in the /secure directoryB、Placing it in the /WEB-INF directoryC、Placing it in the /META-INF/secure directoryD、Creating a  element within the deployment descriptor

考题 Given this fragment in a servlet: 23.if(req.isUserInRole("Admin")) { 24.// do stuff 25.} And the following fragment from the related Java EE deployment descriptor: 812. 813.Admin 814.Administrator 815. 900. 901.Admin 902.Administrator 903. What is the result?()A、Line 24 can never be reached.B、The deployment descriptor is NOT valid.C、If line 24 executes, the user’s role will be Admin.D、If line 24 executes, the user’s role will be Administrator.E、If line 24 executes the user’s role will NOT be predictable.

考题 Given the element from the web application deployment descriptor: /main/page1.jsp true and given that /main/page1.jsp contains: % int i = 12; % %= i %  What is the result?()A、b/bB、b12/bC、The JSP fails to execute.D、% int i = 12 %b%= i %/b

考题 What is the name of the WebLogic specific deployment descriptor of Java Enterprise Application?()A、application.xmlB、weblogic.xmlC、web.xmlD、weblogic-application.xmlE、config.xml

考题 Which two statements are true about the security-related tags in a valid Java EE deployment descriptor?()A、Every  tag must have at least one  tag.B、A  tag can have many  tags.C、A given  tag can apply to only one  tag.D、A given  tag can contain from zero to many  tags.E、It is possible to construct a valid  tag such that,for a given resource,no user rolescan access that resource.

考题 Which is the true choice about the web container request processing model()?A、 The init method on a filter is called the first time a servlet mapped to that filter is invokedB、 A filter defined for a servlet must always forward control to the next resource in the filter chain.C、 Filters associated with a named servlet are applied in the order they appear in the web application deployment descriptor fileD、 If the init method on a filter throws an UnavailableException, then the container will make no further attempt to execute it

考题 Which implicit object is used in a JSP page to retrieve values associated with  entries inthe deployment descriptor?()A、ConfigB、RequestC、SessionD、Application

考题 Given this fragment from a Java EE deployment descriptor: 341. 342.java.lang.Throwable  343./mainError.jsp 344. 345. 346.java.lang.ClassCastException  347./castError.jsp 348. If the web application associated with the fragment above throws a ClassCastException.Which statement is true?()A、The deployment descriptor is invalid.B、The container invokes mainError.jsp.C、The container invokes castError.jsp.D、Neither mainError.jsp nor castError.jsp is invoked.

考题 Given this fragment from a Java EE deployment descriptor: 124. beta.html 125. alpha.html And this request from a browser:http://www.sun.com/SCWCDtestApp/register Which statement is correct,when the container receives this request?()A、This deployment descriptor is NOT valid.B、The container first looks in the register directory for beta.html.C、The container first looks in the register directory for alpha.html.D、The container first looks for a servlet mapping in the deployment descriptor.

考题 Which element of the web application deployment descriptor defines the servlet class associated with aservlet instance?()A、classbr/B、webappbr/C、servletbr/D、codebasebr/E、servlet-class

考题 Which is true about the web container request processing model?()A、The init method on a filter is called the first time a servlet mapped to that filter is invoked.B、A filter defined for a servlet must always forward control to the next resource in the filter chain.C、Filters associated with a named servlet are applied in the order they appear in the web application deployment descriptor file.D、If the init method on a filter throws an UnavailableException, then the container will make no further attempt to execute it.

考题 You deployed a Java EE Shared Library and want to use it from an application that is also deployed on the same cluster.    Which two manifest attributes must be specified at a minimum with corresponding values in the deployment descriptor of the application that requires?()A、Implementation-VersionB、Specification-VersionC、Extension-Name  D、Specification-VendorE、Implementation-Vendor

考题 单选题Given this fragment in a servlet: 23.if(req.isUserInRole("Admin")) { 24.// do stuff 25.} And the following fragment from the related Java EE deployment descriptor: 812. 813.Admin 814.Administrator 815. 900. 901.Admin 902.Administrator 903. What is the result?()A Line 24 can never be reached.B The deployment descriptor is NOT valid.C If line 24 executes, the user’s role will be Admin.D If line 24 executes, the user’s role will be Administrator.E If line 24 executes the user’s role will NOT be predictable.

考题 单选题Which element is the parent of the  tag in the web application deployment descriptor? ()A  web-app B  filters C  servlet D  filter-list 

考题 单选题Which is the true choice about the web container request processing model()?A  The init method on a filter is called the first time a servlet mapped to that filter is invokedB  A filter defined for a servlet must always forward control to the next resource in the filter chain.C  Filters associated with a named servlet are applied in the order they appear in the web application deployment descriptor fileD  If the init method on a filter throws an UnavailableException, then the container will make no further attempt to execute it

考题 多选题Which the three interfaces need to be declared in the web application deployment descriptor? ()AHttpSessionListenerBHttpSessionBindingListenerCHttpSessionTimedOutListenerDHttpSessionAttributeListenerEHttpSessionActivationListenerFHttpSessionPassivatedListener

考题 单选题Which is true about the web container request processing model?()A The init method on a filter is called the first time a servlet mapped to that filter is invoked.B A filter defined for a servlet must always forward control to the next resource in the filter chain.C Filters associated with a named servlet are applied in the order they appear in the web application deployment descriptor file.D If the init method on a filter throws an UnavailableException, then the container will make no further attempt to execute it.

考题 单选题Given the element from the web application deployment descriptor: /main/page1.jsp true and given that /main/page1.jsp contains:   What is the result?()A b/bB b12/bC The JSP fails to execute.D % int i = 12 %b%= i %/b

考题 多选题You deployed a Java EE Shared Library and want to use it from an application that is also deployed on the same cluster.    Which two manifest attributes must be specified at a minimum with corresponding values in the deployment descriptor of the application that requires?()AImplementation-VersionBSpecification-VersionCExtension-NameDSpecification-VendorEImplementation-Vendor

考题 单选题What is the name of the WebLogic specific deployment descriptor of Java Enterprise Application?()A application.xmlB weblogic.xmlC web.xmlD weblogic-application.xmlE config.xml

考题 单选题Given this fragment in a servlet: 23.if(req.isUserInRole("Admin")) { 24.// do stuff 25.} And the following fragment from the related Java EE deployment descriptor: 812. 813.Admin 814.Administrator 815. 900. 901.Admin 902.Administrator 903. What is the result?()A Line 24 can never be reached.B The deployment descriptor is NOT valid.C If line 24 executes, the user’s role will be Admin.D If line 24 executes, the user’s role will be Administrator.E If line 24 executes the user’s role will NOT be predictable.

考题 单选题Given this fragment from a Java EE deployment descriptor: 341. 342.java.lang.Throwable  343./mainError.jsp 344. 345. 346.java.lang.ClassCastException  347./castError.jsp 348. If the web application associated with the fragment above throws a ClassCastException.Which statement is true?()A The deployment descriptor is invalid.B The container invokes mainError.jsp.C The container invokes castError.jsp.D Neither mainError.jsp nor castError.jsp is invoked.

考题 单选题Which element of the web application deployment descriptor defines the servlet class associated with aservlet instance?()A classbr/B webappbr/C servletbr/D codebasebr/E servlet-class

考题 单选题Within the web application deployment descriptor, which defines a valid JNDI environment entry()A AB BC CD D

考题 单选题Which makes the local EJB component accessible to the web components in the web application deployment descriptor?()A AB BC CD D

考题 单选题Which defines the welcome files in a web application deployment descriptor?()A AB BC CD DE E

考题 单选题Given this fragment from a Java EE deployment descriptor: 341. 342.java.lang.Throwable  343./mainError.jsp 344. 345. 346.java.lang.ClassCastException  347./castError.jsp 348. If the web application associated with the fragment above throws a ClassCastException.Which statement is true?()A The deployment descriptor is invalid.B The container invokes mainError.jsp.C The container invokes castError.jsp.D Neither mainError.jsp nor castError.jsp is invoked.

考题 单选题Given this fragment from a Java EE deployment descriptor: 124. beta.html 125. alpha.html And this request from a browser:http://www.sun.com/SCWCDtestApp/register Which statement is correct,when the container receives this request?()A This deployment descriptor is NOT valid.B The container first looks in the register directory for beta.html.C The container first looks in the register directory for alpha.html.D The container first looks for a servlet mapping in the deployment descriptor.