单选题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?()AThis deployment descriptor is NOT valid.BThe container first looks in the register directory for beta.html.CThe container first looks in the register directory for alpha.html.DThe container first looks for a servlet mapping in the deployment descriptor.
单选题
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.
参考解析
解析:
暂无解析
相关考题:
The Hypertext Transfer Protocol , the Web's ( ) protocol , is at the heart of the Web. HTTP is implemented in two programs : a ( ) program and a server program . The client program and server program executing on different end systems , talk to each other by ( ) HTTP messages . HTTP defines how Web clients request Web pages from servers and how servers transfer web pages to clients . when a user ( ) a web page , the browser sends http request messages for the objects in the page to the server . The server (请作答此空) the requests and responds with http response messages that contain the objects .A.declinesB.deletesC.editsD.receives
The Hypertext Transfer Protocol,the Web's( )protocol,is at the heart of the Web.HTTP is implemented in two programs:a( )program and a server program.The client program and server program executing on different end systems,talk to each other by( )HTTP messages.HTTP defines how Web clients request Web pages from servers and how servers transfer web pages to clients.when a user( )a web page,the browser sends http request messages for the objects in the page to the server.The server(请作答此空)the requests and responds with http response messages that contain the objects.A.declinesB.deletesC.editsD.receives
Which two pieces of information are needed when declaring the web resource collection in the deployment descriptor?()A、 the URL pattern that requires authorizationB、 the HTTP methods that require authorizationC、 the users allowed access to the web resourceD、 the J2EE roles allowed access to the web resourceE、 the authentication mechanism required by the web resource
A web browser need NOT always perform a complete request for a particular page that it suspects mightNOT have changed. The HTTP specification provides a mechanism for the browser to retrieve only a partialresponse from the web server; this response includes information, such as the Last-Modified date but NOTthe body of the page. Which HTTP method will the browser use to retrieve such a partial response?()A、GETB、ASKC、SENDD、HEADE、TRACE
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.
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
Given a header in an HTTP request:X-Retries:4 Which two retrieve the value of the header from a given HttpServletRequest request?()A、Request.getHeader("X-Retries")B、Request.getIntHeader("X-Retries")C、Request.getRequestHeader("X-Retries")D、Request.getHeaders("X-Retries").get(0)E、Request.getRequestHeaders("X-Retries").get(0)
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 that www.example.com/SCWCDtestApp is a validly deployed Java EE web application and that all ofthe JSP files specified in the requests below exist in the locations specified. Which two requests,issuedfrom a browser,will return an HTTP 404 error?()A、http://www.example.com/SCWCDtestApp/test.jspB、http://www.example.com/SCWCDtestApp/WEB-INF/test.jspC、http://www.example.com/SCWCDtestApp/WEB-WAR/test.jspD、http://www.example.com/SCWCDtestApp/Customer/test.jspE、http://www.example.com/SCWCDtestApp/META-INF/test.jspF、http://www.example.com/SCWCDtestApp/Customer/Update/test.jsp
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.
You are creating a web form with this HTML: 11. 12. 13. 14. 15. Which HTTP method is used when sending this request from the browser?()A、GETB、PUTC、POSTD、SENDE、FORM
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?()ALine 24 can never be reached.BThe deployment descriptor is NOT valid.CIf line 24 executes, the user’s role will be Admin.DIf line 24 executes, the user’s role will be Administrator.EIf line 24 executes the user’s role will NOT be predictable.
单选题You are creating a web form with this HTML: 11. 12. 13. 14. 15. Which HTTP method is used when sending this request from the browser?()AGETBPUTCPOSTDSENDEFORM
单选题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 two pieces of information are needed when declaring the web resource collection in the deployment descriptor?()Athe URL pattern that requires authorizationBthe HTTP methods that require authorizationCthe users allowed access to the web resourceDthe J2EE roles allowed access to the web resourceEthe authentication mechanism required by the web resource
单选题Which is true about the web container request processing model?()AThe init method on a filter is called the first time a servlet mapped to that filter is invoked.BA filter defined for a servlet must always forward control to the next resource in the filter chain.CFilters associated with a named servlet are applied in the order they appear in the web application deployment descriptor file.DIf 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?()AImplementation-VersionBSpecification-VersionCExtension-NameDSpecification-VendorEImplementation-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?()ALine 24 can never be reached.BThe deployment descriptor is NOT valid.CIf line 24 executes, the user’s role will be Admin.DIf line 24 executes, the user’s role will be Administrator.EIf line 24 executes the user’s role will NOT be predictable.
单选题A web browser need NOT always perform a complete request for a particular page that it suspects mightNOT have changed. The HTTP specification provides a mechanism for the browser to retrieve only a partialresponse from the web server; this response includes information, such as the Last-Modified date but NOTthe body of the page. Which HTTP method will the browser use to retrieve such a partial response?()AGETBASKCSENDDHEADETRACE
单选题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?()AThe deployment descriptor is invalid.BThe container invokes mainError.jsp.CThe container invokes castError.jsp.DNeither mainError.jsp nor castError.jsp is invoked.
单选题Which defines the welcome files in a web application deployment descriptor?()A AB BC CD DE E
多选题Given a header in an HTTP request: X-Retries:4 Which two retrieve the value of the header from a given ServletRequest request? ()Arequest.getHeader (“X-Retries”)Brequest.getIntHeader (“X-Retries”)Crequest.getRequestHeader (“x-Retries”)Drequest.getHeaders (“X-Retries”).get (0)Ere request.getRequest Headers (“X-Retries”). Get (0)
单选题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?()AThe deployment descriptor is invalid.BThe container invokes mainError.jsp.CThe container invokes castError.jsp.DNeither mainError.jsp nor castError.jsp is invoked.