问题:单选题A JSP page contains a taglib directive whose uri attribute has the value dbtags. Which XML element withinthe web application deployment descriptor defines the associated TLD?()A tlduridbtags/urilocation/WEB-INF/tlds/dbtags.tld/location/tldB tagliburidb...
查看答案
问题:单选题The Squeaky Bean company has decided to port their web application to a new J2EE 1.4 container. Whilereviewing the application, a developer realizes that in multiple places within the current application, nearlyduplicate code exists that finds enterpri...
问题:单选题Which element of a web application deployment descriptor element is required?()A realm-nameB auth-methodC security-roleD transport-guaranteeE web-resource-collection...
问题:多选题Given: 11. 15. 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]]}...
问题:单选题Given: 5.public class MyTagHandler extends TagSupport { 6.public int doStartTag() throws JspException { 7.try { 8.// insert code here 9.} catch(Exception ex) { /* handle exception */ } 10.return super.doStartTag(); 11.}...42. } Which code snippet, inse...
问题:多选题A developer chooses to avoid using SingleThreadModel but wants to ensure that data is updated in athread-safe manner. Which two can support this design goal?()AStore the data in a local variable.BStore the data in an instance variable.CStore the data i...
问题:单选题You have a new IT manager that has mandated that all JSPs must be refactored to include no scritpletcode. The IT manager has asked you to enforce this. Which deployment descriptor element will satisfy thisconstraint?()A jsp-property-group. url-pattern*...
问题:多选题Given: http://com.example/myServlet.jsp?num=onenum=twonum=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]}, $...
问题:单选题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?()A !-- this is a comment --B % // this is a comment %C %-- this is a comment --%D % /** this is a comment **/ %...
问题:多选题For which three events can web application event listeners be registered?()AWhen a session is createdBAfter a servlet is destroyedCWhen a session has timed outDWhen a cookie has been createdEWhen a servlet has forwarded a requestFWhen a session attribu...
问题:单选题A developer is designing a multi-tier web application and discovers a need to hide the details of establishingand maintaining remote communications from the client. In addition, because the business and resourcetiers are distributed, the application ne...
问题:多选题A session-scoped attribute is stored by a servlet, and then that servlet forwards to a JSP page. Which threejsp:useBean attributes must be used to access this attribute in the JSP page?()AidBnameCbeanDtypeEscope...
问题:A web application allows the HTML title banner to be set usi...
问题:单选题Which activity supports the data integrity requirements of an application?()A Using HTTPS as a protocolB Using an LDAP security realmC Using HTTP Basic authenticationD Using forms-based authentication...
问题:单选题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 ...
问题:单选题Which ensures that a JSP response is of type "text/plain"?()A %@ page mimeType=text/plain %B %@ page contentType=text/plain %C %@ page pageEncoding=text/plain %D %@ page contentEncoding=text/plain %E % response.setEncoding(text/plain); %...
问题:单选题Which security mechanism uses the concept of a realm?()A AuthorizationB Data integrityC ConfidentialityD Authentication...
问题:Given: 3.class MyServlet extends HttpServlet { 4.public void...
问题:单选题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 2...