阿摩線上測驗
登入
首頁
>
OCE
>
無年度 - Java EE 6 Web Component Developer Certified Expert Exam:1z0-899(1-50)#84202
> 試題詳解
複選題
18 ServletRegistration.Dynamic can be used to configure (Choose two)
(A) Filter mappings
(B) add init params
(C) set asyncSupported to true
(D) add Listeners
答案:
登入後查看
統計:
尚無統計資料
詳解 (共 1 筆)
【站僕】摩檸Morning.
B1 · 2020/03/28
#3851051
B C
(共 5 字,隱藏中)
前往觀看
0
0
相關試題
複選題41 Given an HttpServletRequest request: 22. String id = request.getParameter("jsessionid"); 23. // insert code here 24. String name = (String) session.getAttribute("name") Which three can be placed at line 23 to retrieve an existing HttpSession object? (Choose three) (A) HttpSession session = request.getSession(); (B) HttpSession session = request.getSession(id); (C) HttpSession session = request.getSession(true); (D) HttpSession session = request.getSession(false); (E) HttpSession session = request.getSession("jsessionid");
#2238464
42 You have built a web application that you license to small businesses. The webapp uses a context parameter, called licenseExtension, which enables certain advanced features based on your client's license package. When a client pays for a specific service, you provide them with a license extension key that they insert into the <context-param> of the deployment descriptor. Not every client will have this context parameter so you need to create a context listener to set up a default value in the licenseExtension parameter. Which code snippet will accomplish this goal? (A) You cannot do this because context parameters CANNOT be altered programmatically. (B) String ext = context.getParameter('licenseExtension');if ( ext == null ) { context.setParameter('licenseExtension' DEFAULT);} (C) String ext = context.getAttribute('licenseExtension');if ( ext == null ) { context.setAttribute('licenseExtension' DEFAULT);} (D) String ext = context.getInitParameter('licenseExtension')if ( ext == null ) { context.resetInitParameter('licenseExtension' DEFAULT);} (E) String ext = context.getInitParameter('licenseExtension')if ( ext == null ) { context.setInitParameter('licenseExtension' DEFAULT);}
#2238465
複選題43 You have been contracted to create a web site for a free dating service. One feature is the ability for one client to send a message to another client, which is displayed in the latter client's private page. Your contract explicitly states that security is a high priority. Therefore, you need to prevent cross-site hacking in which one user inserts JavaScript code that is then rendered and invoked when another user views that content. Which two JSTL code snippets will prevent cross-site hacking in the scenario above? (Choose two.) IT Certification Guaranteed, The Easy Way! 17 (A) <c:out>${message}</c:out> (B) <c:out value= '${message}' /> (C) <c:out value= '${message}' escapeXMl= 'true' /> (D) <c:out eliminateXml= 'true'>${message}</c:out> (E) <c:out value='${message}' eliminateXml= 'true' />
#2238466
44 When using Servlet asynchronous API if you want to dispatch the request back to a particular url - "url" within the same ServletContext which of the following API would you use? (A) AsyncContext.dispatch(); (B) AsyncContext.dispatch("/url"); (C) AsyncContext.dispatch(servletContext, "/url"); (D) AsyncContext.start(runnable); (E) RequestDispatcher.forward("/url"); F. RequestDispatcher.forward(servletContext, "/url"); G. RequestDispatcher.include("/url");
#2238467
45 Your web page includes a Java SE v1.5 applet with the following declaration: Which HTTP method is used to retrieve the applet code? (A) GET (B) PUT (C) POST (D) RETRIEVE
#2238468
46 Which method must be used to encode a URL passed as an argument to HttpServletResponse. sendRedirect when using URL rewriting for session tracking? (A) ServletResponse.encodeURL (B) HttpServletResponse.encodeURL (C) ServletResponse.encodeRedirectURL (D) HttpServletResponse.encodeRedirectURL
#2238469
47 A web browser need NOT always perform a complete request for a particular page that it suspects might NOT have changed. The HTTP specification provides a mechanism for the browser to retrieve only a partial response from the web server; this response includes information, such as the Last-Modified date but NOT the body of the page. Which HTTP method will the browser use to retrieve such a partial response? IT Certification Guaranteed, The Easy Way! (A) GET (B) ASK (C) SEND (D) HEAD (E) TRACE (F) OPTIONS
#2238470
複選題48 View the Exhibit. Assume the product attribute does NOT yet exist in any scope. Which two create an instance of com.example.Product and initialize the name and price properties to the name and price request parameters? (Choose two) (A) <jsp:useBean id="product" class="com.example.Product" /><jsp:setProperty name="product" property="*" /> (B) <jsp:useBean id="product" class="com.example.Product" /><% product.setName( request.getParameter( "name" ) ); %><% product.setPrice( request.getParameter( "price" ) ); %> (C) <jsp:useBean id="product" class="com.example.Product" /><jsp:setProperty name="product" property="name"value="${param.name}" /><jsp:setProperty name="product" property="price"value="${param.price}" /> IT Certification Guaranteed, The Easy Way! (D) <jsp:useBean id="product" class="com.example.Product"><jsp:setProperty name="product" property="name"value="${name}" /><jsp:setProperty name="product" property="price"value="${price}" /></jsp:useBean>
#2238471
49 A web component accesses a local EJB session bean with a component interface of com.example.Account with a home interface of com.example.AccountHome and a JNDI reference of ejb/Account. Which makes the local EJB component accessible to the web components in the web application deployment descriptor? (A) Option A (B) Option B IT Certification Guaranteed, The Easy Way! (C) Option C (D) Option D
#2238472
50. Servlet A forwarded a request to servlet B using the forward method of RequestDispatcher. What attribute in B's request object contains the URI of the original request received by servlet A? (A) REQUEST_URI (B) javax.servlet.forward.request_uri (C) javax.servlet.forward.REQUEST_URI (D) javax.servlet.request_dispatcher.request_uri (E) javax.servlet.request_dispatcher.REQUEST_URI
#2238473
相關試卷
無年度 - Java EE 6 Web Component Developer Certified Expert Exam:1z0-899 (101-132)#84682
-999 年 · #84682
無年度 - Java EE 6 Web Component Developer Certified Expert Exam:1z0-899(1-50)#84202
-999 年 · #84202
無年度 - Java EE 6 Web Component Developer Certified Expert Exam:1z0-899(51-100)#84004
-999 年 · #84004