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 

题目
单选题
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 you specify in the deployment descriptor, like this: 42. 43.webmasterEmail 44.master@example.com 45. Which JSP code snippet creates this email link?()
A

<a href=’mailto:${contextParam.webmasterEmail}’>contact us</a>

B

<a href=’mailto:${applicationScope.webmasterEmail}’>contact us</a>

C

<a href=’mailto:${contextInitParam.webmasterEmail}’>contact us</a>

D

<a href=’mailto:${initParam.webmasterEmail}’>contact us</a>

如果没有搜索结果,请直接 联系老师 获取答案。
如果没有搜索结果,请直接 联系老师 获取答案。
相似问题和答案

第1题:

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 deployment descriptor: 10. 11.footerEmail 12.joe@estates-r-us.biz 13. Which EL code snippet will insert this context parameter into the footer?()

  • A、<a href=’mailto:${footerEmail}’>Contact me</a>
  • B、<a href=’mailto:${initParam@footerEmail}’>Contact me</a>
  • C、<a href=’mailto:${initParam.footerEmail}’>Contact me</a>
  • D、<a href=’mailto:${contextParam@footerEmail}’>Contact me</a>
  • E、<a href=’mailto:${contextParam.footerEmail}’>Contact me</a>

正确答案:C

第2题:

A Company.com developer has created a web application that includes a servlet for each use case in the application. These servlets have become rather difficult to maintain because the request processing methods have become very large. There is also common processing code in many servlets because these use cases are very similar.  Which two design patterns can be used together to refactor and simplify this web application? ()

  • A、 Proxy
  • B、 View Helper
  • C、 Front Controller
  • D、 Session Façade
  • E、 Business Delegate
  • F、 Model-View-Controller

正确答案:C,F

第3题:

A developer has created a web application that includes a servlet for each use case in the application.These servlets have become rather difficult to maintain because the request processing methods havebecome very large. There is also common processing code in many servlets because these use cases arevery similar. Which two design patterns can be used together to refactor and simplify this web application?()

  • A、Proxy
  • B、View Helper
  • C、Front Controller
  • D、Session Facade
  • E、Business Delegate
  • F、Model-View-Controller

正确答案:C,F

第4题:

You have a Web server named Server1 that runs Windows Server 2003 Service Pack 2 (SP2). Server1 hosts one Web site. You create a second Web site that hosts a third-party Web application named App1. The vendor of the third-party application states that the application does not support host headers. You need to ensure that users can access both Web sites. What should you do?()

  • A、Enable WebDAV.
  • B、Enable Server Side Includes.
  • C、Configure both Web sites to use different IP addresses.
  • D、Configure both Web sites to use different application pools.

正确答案:C

第5题:

You have a Web server named Server1 that runs Windows Server 2003 Service Pack 2 (SP2). Server1 hosts one Web site. You create a second Web site that hosts a third-party Web application named App1. The vendor of the third-party application states that the application does not support host headers. You need to ensure that users can access both Web sites. What should you do?()

  • A、Enable WebDAV.
  • B、Enable Server Side Includes.
  • C、Configure both Web sites to use different IP addresses.
  • D、Configure both Web sites to use different application pools.

正确答案:C

第6题:

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 you specify in the deployment descriptor, like this: 42. 43.webmasterEmail 44.master@example.com 45. Which JSP code snippet creates this email link?()

  • A、<a href=’mailto:${contextParam.webmasterEmail}’>contact us</a>
  • B、<a href=’mailto:${applicationScope.webmasterEmail}’>contact us</a>
  • C、<a href=’mailto:${contextInitParam.webmasterEmail}’>contact us</a>
  • D、<a href=’mailto:${initParam.webmasterEmail}’>contact us</a>

正确答案:D

第7题:

Every morning, you inspect your company's development and staging servers. You do this to ensure that the servers have the same versions of all files in your Web application.For security reasons, you can only access the staging server through FTP.You need to synchronize files from the staging server so that the staging server matches the development server.You want to achieve this goal by using the minimum amount of administrative effort. Which tool should you use?()

  • A、FTP
  • B、XCOPY
  • C、the Publish Web tool
  • D、the Copy Web tool

正确答案:D

第8题:

You are designing a Windows Azure web application.  All users authenticate by using their Active Directory Domain Services (AD DS) credentials.  You need to recommend an approach for enabling single sign-on for domain-authenticated users.   Which two actions should you recommend?()

  • A、 Use Forms authenticationto generate claims.
  • B、 Use Active Directory Federation Services (AD FS) to generate claims.
  • C、 Use SqlMembershipProvider in the web application.
  • D、 Use Windows Identity Foundation in the web application.

正确答案:B,D

第9题:

You write a Web application. This application must support multiple languages. You store the localized strings in the application as resources. You want these resources to be accessed according to a users language preference. You create the following resource files in the App_GlobalResources folder of your application.myStrings.resxmyStrings.enCA.resxmyString.en-US.resxmyStrings.fr-CA.resxmyStrings.es-MX.resx resource file stores a localized version of the following strings: Name, E-mail, Address, and Phone. You create a Web Form that contains one label for each of these strings. You need to ensure that the correct localized version of each string is displayed in each label, according to a users language preference. What should you do? ()

  • A、Add the following configuration section to the Web.config file.
  • B、Set the directive for each page in your site as follows:<%@ page="" uiculture="“Auto”">
  • C、Add the following code segment to the pages load event.lblName.Text = @”{myStrings}Name”; lblAddress.Text = @”{myStrings}Address”; lblEmail.Text = @”{myStrings}Email”; lblPhone.Text = @”{myStrings}Phone”;
  • D、Add the following code segment to the pages load event. lblName.Text = Resources.myStrings.Name; lblAddress.Text = Resources.myStrings.Address; lblEmail.Text = Resources.myStrings.Email; lblPhone.Text = Resources.myStrings.Phone;

正确答案:D

第10题:

You create a Web application. The Web application enables users to change fields in their personal profiles. Some of the changes are not persisting in the database. You need to raise a custom event to track each change that is made to a user profile so that you can locate the error. Which event should you use?()

  • A、WebAuditEvent
  • B、WebEventManager
  • C、WebBaseEvent
  • D、WebRequestEvent

正确答案:C

更多相关问题