Given an EL function declared with:11. <function>
12.<name>spin</name>
13.<function-class>com.example.Spinner</function-class>
14.<function-signature>
15.java.lang.String spinIt()
16.</function-signature>
17.</function>
Which two are true?()
A.The function method must have the signature: public String spin().
B.The method must be mapped to the logical name "spin" in the web.xml file.
C.The function method must have the signature: public String spinIt().
D.The function method must have the signature public static String spin().
E.The function method must have the signature: public static String spinIt().
F.The function class must be named Spinner, and must be in the package com.example.
您可能感興趣的試卷
你可能感興趣的試題
Given a web application in which the cookie userName is expected to contain the name of the user.
Which EL expression evaluates to that user name?()
A.${userName}
B.${cookie.userName}
C.${cookie.user.name}
D.${cookies.userName[0]}
Given: http://com.example/myServlet.jsp?num=one&num=two&num=three.
Which two produce the output"one, two and three"?()
A.${param.num[0],[1] and [2]}
B.${paramValues[0],[1] and [2]}
C.${param.num[0]}, ${param.num[1]} and ${param.num[2]}
D.${paramValues.num[0]}, ${paramValues.num[1]} and ${paramValues.num[2]}
E.${paramValues["num"][0]}, ${paramValues["num"][1]} and ${paramValues["num"][2]}
Given:
11.<% java.util.Map map = new java.util.HashMap();
12.request.setAttribute("map", map);
13.map.put("a", "true");
14.map.put("b", "false");
15.map.put("c", "42"); %>
Which three EL expressions are valid and evaluate to true?()
A.${not map.c}
B.${map.d or map.a}
C.${map.a and map.d}
D.${map.false or map.true}
E.${map.a and map.b or map.a}
Given:
11.<%
12.request.setAttribute("vals", new String[]{"1","2","3","4"});
13.request.setAttribute("index", "2");
14.%>
15.<%-- insert code here --%>
Which three EL expressions, inserted at line 15,are valid and evaluate to "3"?()
A.${vals.2}
B.${vals["2"]}
C.${vals.index}
D.${vals[index]}
E.${vals}[index]
F.${vals[vals[index-1]]}
A.Form-based logins should NOT be used with HTTPS.
B.When using Basic Authentication the target server is NOT authenticated.
C.J2EE compliant web containers are NOT required to support the HTTPS protocol.
D.Web containers are required to support unauthenticated access to unprotected web resources.
最新試題
Which two are valid and equivalent?()
Your IT department is building a lightweight Front Controller servlet that invokes an application logic objectwith the interface:public interface ApplicationController {public String invoke(HttpServletRequest request)}The return value of this method indicates a symbolic name of the next view. From this name, the FrontController servlet looks up the JSP URL in a configuration table. This URL might be an absolute path or apath relative to the current request. Next, the Front Controller servlet must send the request to this JSP togenerate the view. Assume that the servlet variable request is assigned the current HttpServletRequestobject and the variable context is assigned the webapp’s ServletContext.Which code snippet of the FrontController servlet accomplishes this goal?()
The JSP developer wants a comment to be visible in the final output to the browser.Which comment styleneeds to be used in a JSP page?()
You are building a dating web site. The client’s date of birth is collected along with lots of other information.The Person class has a derived method, getAge():int, which returns the person’s age calculated from thedate of birth and today’s date. In one of your JSPs you need to print a special message to clients within theage group of 25 through 35.Which two EL code snippets will return true for this condition? ()
Click the ’Select and Place’ button.Place the events in the order they occur.
Click the ’Select and Place’ button.Place the events in the order they occur.
Click the ’Select and Place’ button.Place the events in the order they occur.
Click the ’Select and Place’ button.Place the events in the order they occur.
Click the ’Select and Place’ button.Place the events in the order they occur.
Given a Filter class definition with this method:21.public void doFilter(ServletRequest request,22.ServletResponse response,23.FilterChain chain)24.throws ServletException, IOException {25.// insert code here26.}Which should you insert at line 25 to properly invoke the next filter in the chain, or the target servlet if thereare no more filters?()