当前分类: SCWCD(310-083)
问题:单选题All of your JSPs need to have a link that permits users to email the web master. This web application islicensed to many small businesses, each of which have a different email address for the web master. Youhave decided to use a context parameter that ...
查看答案
问题:单选题Given a portion of a valid Java EE web application’s directory structure:MyApp | |--Directory1 ||--File1.html| |--META-INF| |--File2.html| |--WEB-INF |--File3.html You want to know whether File1.html, File2.html,and/or File3.html is protected from dir...
问题:单选题Your web application views all have the same header, which includes the tag in the elementof the rendered HTML. You have decided to remove this redundant HTML code from your JSPs and put itinto a single JSP called /WEB-INF/jsp/header.jsp. However, th...
问题:单选题A developer has used this code within a servlet: 62.if(request.isUserInRole("vip")) { 63.// VIP-related logic here 64.} What else must the developer do to ensure that the intended security goal is achieved?()A Create a user called vip in the security r...
问题:单选题A developer is designing a web application that must support multiple interfaces, including: an XML web service for B2B HTML for web-based clients WML for wireless customers. Which designpattern provides a solution for this problem?()A Session FacadeB ...
问题:单选题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 inc...
问题:多选题Which two statements are true about the security-related tags in a valid Java EE deployment descriptor?()AEvery tag must have at least one tag.BA tag can have many tags.CA given tag can apply to only one tag.DA given tag can contain from zero to...
问题:多选题A JSP page needs to set the property of a given JavaBean to a value that is calculated with the JSP page. Which three jsp:setProperty attributes must be used to perform this initialization?()AIdBValCNameDParamEValueFProperty...
问题:单选题A developer is designing a web application that must verify for each request: The originating request is froma trusted network. The client has a valid session.The client has been authenticated. Which design pattern provides a solution in this situation...
问题:多选题Given a web application in which the request parameter productID contains a product identifier. Which twoEL expressions evaluate the value of the productID?()A${productID}B${param.productID}C${params.productID}D${params.productID[1]}E${paramValues.prod...
问题:单选题After a merger with another small business, your company has inherited a legacy WAR file but the originalsource files were lost. After reading the documentation of that web application,you discover that the WARfile contains a useful tag library that yo...
问题:单选题You are building JSP pages that have a set of menus that are visible based on a user’s security role. Thesemenus are hand-crafted by your web design team; for example, the SalesManager role has a menu in thefile /WEB-INF/html/sales-mgr-menu.html. Which...
问题:单选题Which element of a web application deployment descriptor element is required?()A realm-nameB auth-methodC security-roleD transport-guaranteeE web-resource-collection...
问题:单选题Which is a benefit of precompiling a JSP page?()A It avoids initialization on the first request.B It provides the ability to debug runtime errors in the application.C It provides better performance on the first request for the JSP page.D It avoids exec...
问题:多选题A developer wants a web application to be notified when the application is about to be shut down. Which two actions are necessary to accomplish this goal?()AInclude a listener directive in a JSP pageBconfigure a listener in the TLD file using the elem...
问题:多选题In which three directories, relative to a web application’s root, may a tag library descriptor file reside whendeployed directly into a web application?()A/WEB-INFB/META-INFC/WEB-INF/tldsD/META-INF/tldsE/WEB-INF/resourcesF/META-INF/resources...
问题:单选题A developer is designing the presentation tier for a web application that relies on a complex session bean.The session bean is still being developed and the APIs for it are NOT finalized. Any changes to the sessionbean API directly impacts the developm...
问题:单选题You are building a dating web site. The client’s date of birth is collected along with lots of other information.You have created an EL function with the signature: calcAge(java.util.Date):int and it is assigned to the name, age, in the namespace, func...
问题:单选题Which JSTL code snippet can be used to perform URL rewriting?()A a href=’c:url url=foo.jsp/’ /B a href=’c:link url=foo.jsp/’ /C a href=’c:url value=foo.jsp/’ /D a href=’c:link value=foo.jsp/’ /...
问题:单选题You have created a web application that you license to real estate brokers. The webapp is highly customizable including the email address of the broker, which is placed on the footer of each page. This isconfigured as a context parameter in the deploym...