CMS专题

单选题Users of your web application have requested that they should be able to set the duration of their sessions.So for example, one user might want a webapp to stay connected for an hour rather than the webapp’sdefault of fifteen minutes; another user migh

题目
单选题
Users of your web application have requested that they should be able to set the duration of their sessions.So for example, one user might want a webapp to stay connected for an hour rather than the webapp’sdefault of fifteen minutes; another user might want to stay connected for a whole day. Furthermore, youhave a special login servlet that performs user authentication and retrieves the User object from the database. You want to augment this code to set up the user’s specified session duration. Which codesnippet in the login servlet will accomplish this goal?()
A

User user = // retrieve the User object from the database session.setDurationInterval(user.getSessionDuration());

B

User user = // retrieve the User object from the database session.setMaxDuration(user.getSessionDuration());

C

User user = // retrieve the User object from the database session.setInactiveInterval(user.getSessionDuration());

D

User user=//retrieve the User object from the database session.setDuration(user.getSessionDuratio());

E

User user = // retrieve the User object from the database session.setMaxInactiveInterval(user.getSessionDuration());

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

第1题:

You create a Web application for your company‘s intranet. You want to enable users to customize their versions of the intranet home page. You create sections of content as Web Parts. You need to ensure that users can customize content at any time.Which two code segments should you use?()

A.

B.

C.

D.


参考答案:B, C

第2题:

You have a server named Server1 that runs Windows Server 2003 Web Edition Service Pack 2 (SP2).You create a new virtual directory named App1. App1 contains a Web application.Users report that when they enter http://app1 in their Web browsers, they are unable to connect to the Web application.You need to ensure that users can access the Web application when they connect to http://app1.What should you do? ()

A. Move the content of the Web application to C:\App1. Change the home directory for App1.

B. Move the content of the Web application to C:\App1. Change the application pool for App1.

C. Remove the App1 virtual directory. Create a new Web site, and then configure the Web site to use port 8080. In DNS, create a Host record for App1.

D. Remove the App1 virtual directory. Create a new Web site, and then configure the Web site to use a host header of App1. In DNS, create a Host record for App1.


参考答案:D

第3题:

We have repeatedly requested payment of $800,()your overdue account.

A、on

B、for

C、with

D、in


参考答案:A

第4题:

You have a server named Server1 that runs Windows Server 2003 Web Edition Service Pack 2 (SP2). You create a new virtual directory named App1. App1 contains a Web application. Users report that when they enter http://app1 in their Web browsers, they are unable to connect to the Web application. You need to ensure that users can access the Web application when they connect to http://app1. What should you do? ()

  • A、Move the content of the Web application to C:/App1. Change the home directory for App1.
  • B、Move the content of the Web application to C:/App1. Change the application pool for App1.
  • C、Remove the App1 virtual directory. Create a new Web site, and then configure the Web site to use port 8080. In DNS, create a Host record for App1.
  • D、Remove the App1 virtual directory. Create a new Web site, and then configure the Web site to use a host header of App1. In DNS, create a Host record for App1.

正确答案:D

第5题:

Identify architecturally where in an application, Coherence stack will be used ()

  • A、 coherence resides locally on the machines of all remote application users
  • B、 coherence resides between remote users and the Web tier
  • C、 coherence resides between the Web tier and application tier
  • D、 coherence resides between the application tier and data tier

正确答案:D

第6题:

You are working on an existing Web site. You need to secure the Web site by redirecting all users to the logon page, Login.aspx. After logging on, users must be sent back to the page that they originally requested.Which code segment should you use?()

A.

B.

C.

D.


参考答案:D

第7题:

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

第8题:

The evidence you have provided is inadequate, therefore, we cannot consider your claim as requested.(英译中)


参考答案:你方所提供的证明是不充分的,因此我方不能考虑你方索赔要求。

第9题:

You are creating a templated Web control for use in your Web application. You need to add the Web control to your Web application pages without compiling your control into a .dll file. What should you do?()

  • A、Ensure that the Web control inherits from the WebControl class.
  • B、Ensure that the Web control inherits from the Control class.
  • C、Ensure that the Web control inherits from the CompositeControl class.
  • D、Ensure that the Web control inherits from the UserControl class.

正确答案:D

第10题:

Your company has an internal Web application that uses a self-signed SSL certificate.  The company has an internal certification authority (CA) with autoenrollment.When users attempt to start the Web application, Internet Explorer displays an error message that recommends closing the Web page rather than continuing to the application.    You need to ensure that Internet Explorer does not display the error message.   What should you do?()

  • A、Issue a certificate from the internal CA and install it on the application server
  • B、Install the Web application’s certificate into the computer store on each client computer
  • C、Install the Web application’s certificate into the personal store on each client computer. Add the application’s URL to the Trusted Sites zone in Internet Explorer
  • D、Purchase a commercial certificate and install it on the internal CA

正确答案:A

更多相关问题