单选题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

题目
单选题
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 JSP code snippet should be used to make this menuvisible to the user?()
A

<% if ( request.isUserInRole(SalesManager) ) { %> <%@ include file=’/WEB-INF/html/sales-mgr-menu.html’ %> <% } %>

B

<jsp:if test=’request.isUserInRole(SalesManager)’> <%@ include file=’/WEB-INF/html/sales-mgr-menu.html’ %> </jsp:if>

C

<% if ( request.isUserInRole(SalesManager) ) { %> . <jsp:include file=’/WEB-INF/html/sales-mgr-menu.html’ /> . <% } %>

D

<jsp:if test=’request.isUserInRole(SalesManager)’> <jsp:include file=’/WEB-INF/html/sales-mgr-menu.html’ /> </jsp:if>


相似考题
更多“单选题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”相关问题
  • 第1题:

    You are designing a Windows Azure application.  The application includes two web roles and three instances of a worker role.  The web roles will send requests to the worker role through one or more Windows Azure Queues. You have the following requirements:   - Ensure that each request is processed exactly one time.   - Minimize the idle time of each worker role instance. - Maximize the reliability of request processing.   You need to recommend a queue design for sending requests to the worker role.  What should you recommend?()

    • A、 Create a single queue.  Send requests on the single queue.
    • B、 Create a queue for each web role.  Send requests on all queues at the same time.
    • C、 Create a queue for each workerrole instance.  Send requests on each worker queue in a round robin.
    • D、 Create a queue for each combination of web roles and worker role instances.  Send requests to all worker role instances based on the sending web role.

    正确答案:A

  • 第2题:

    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 JSP code snippet should be used to make this menuvisible to the user?()

    • A、<% if ( request.isUserInRole("SalesManager") ) { %> <%@ include file=’/WEB-INF/html/sales-mgr-menu.html’ %> <% } %>
    • B、<jsp:if test=’request.isUserInRole("SalesManager")’> <%@ include file=’/WEB-INF/html/sales-mgr-menu.html’ %> </jsp:if>
    • C、<% if ( request.isUserInRole("SalesManager") ) { %> . <jsp:include file=’/WEB-INF/html/sales-mgr-menu.html’ /> . <% } %>
    • D、<jsp:if test=’request.isUserInRole("SalesManager")’> <jsp:include file=’/WEB-INF/html/sales-mgr-menu.html’ /> </jsp:if>

    正确答案:A

  • 第3题:

    You established access to menu modules using roles. You have allowed the sales role to access the menu module, but prevented access to the Update menu item. Which item property would you alter to gray out the menu option for the role?()

    • A、Item Roles. 
    • B、Menu Item Roles. 
    • C、Display without Privilege. 
    • D、Use Security. 
    • E、Command Type.

    正确答案:C

  • 第4题:

    You have a server that runs Windows Server 2008. The server has the Web Server (IIS) server role installed and all the Web Server role services installed.  You need to provide a user the ability to administer a Web site. Which feature should you configure?()

    • A、Net Roles
    • B、Net Users
    • C、Authentication
    • D、IIS Manager Permissions

    正确答案:D

  • 第5题:

    You have a server that runs Windows Server 2008. The server has the Web Server (IIS) server role installed.   The server contains a Web site that is configured to use only Windows Authentication. You have a security group named Group1 that contains several user accounts.  You need to prevent the members of Group1 from accessing a Web site. You must not prevent other users from accessing the Web site.  Which Web site feature should you configure?()

    • A、Authentication
    • B、Authorization Rules
    • C、IIS Manager Permissions
    • D、SSL Settings

    正确答案:B

  • 第6题:

    You have a Windows Server 2008 server that has the Web Server (IIS) server role installed. The servercontains a Web site. You need to ensure that the cookies sent from the Web site are encrypted on userscomputers. Which Web site feature should you configure?()

    • A、Authorization Rules
    • B、Machine Key
    • C、Pages And Controls
    • D、SSL Settings

    正确答案:B

  • 第7题:

    单选题
    ABC Corp. is implementing 11i Oracle Applications. The company has two local administrators in separate locations. They need to ensure that only a relevant set of users is visible to each of these local administrators. Which action will meet the requirement?()
    A

    create a separate role for each local administrator

    B

    specify user administration privileges in Oracle User Management

    C

    use Data Security to provide relevant access to each local administrator

    D

    use Function Security to provide relevant access to each local administrator


    正确答案: B
    解析: 暂无解析

  • 第8题:

    单选题
    You have a server that runs Windows Server 2008. The server has the Web Server (IIS) server role installed.   The server contains a Web site that is configured to use only Windows Authentication. You have a security group named Group1 that contains several user accounts.  You need to prevent the members of Group1 from accessing a Web site. You must not prevent other users from accessing the Web site.  Which Web site feature should you configure?()
    A

    Authentication

    B

    Authorization Rules

    C

    IIS Manager Permissions

    D

    SSL Settings


    正确答案: B
    解析: 暂无解析

  • 第9题:

    单选题
    You are creating a Web application that will run on an intranet. The Web application reads comma-delimited text files. The text files reside in a subdirectory below the Web application's root directory. Users must not be able to navigate directly to these files in a Web browser unless they are members of the Accounting role. You need to write an ASP.NET HTTP handler that will use the FileAuthorizationModule class. Which form of authentication should you use?()
    A

     Anonymous

    B

     Certificate

    C

     Forms

    D

    Microsoft Windows Integrated Security


    正确答案: A
    解析: 暂无解析

  • 第10题:

    单选题
    You are the administrator of a Junos Pulse Access Control Service implementation. You must restrict authenticated users connected from the branch offices to a few specific resources within the data center. However, when the authenticated users are connected at the corporate office, they are allowed more access to the data center resources. You have created two roles with different levels of access and are trying to determine the best way of controlling when a user is mapped to a specific role. Having the user prompted to manually select their role is possible, but you want to automate the process. Which configuration solves this problem?()
    A

    Implement a RADIUS request attribute policy to assist with realm selection and create different role-mapping rules for the user in each realm.

    B

    Implement a directory/attribute server on the realm and set up this server to determine by group membership the proper role to which a user should be mapped.

    C

    Reorder the role-mapping rules to allow for the more open role to be mapped first and then enable the stop processing rules when this rule matches function on this role.

    D

    Implement a Host Checker policy on the realm that determines the geographic location of the device and restricts the user based on the results of the policy.


    正确答案: B
    解析: 暂无解析

  • 第11题:

    单选题
    Every page of your web site must include a common set of navigation menus at the top of the page. Thismenu is static HTML and changes frequently,so you have decided to use JSP’s static import mechanism. Which JSP code snippet accomplishes this goal?()
    A

    <%@ import file=’/common/menu.html’ %>

    B

    <%@ page import=’/common/menu.html’ %>

    C

    <%@ import page=’/common/menu.html’ %>

    D

    <%@ include file=’/common/menu.html’ %>

    E

    <%@ page include=’/common/menu.html’ %>


    正确答案: E
    解析: 暂无解析

  • 第12题:

    单选题
    You are designing a Windows Azure application.  The application includes two web roles and three instances of a worker role.  The web roles will send requests to the worker role through one or more Windows Azure Queues. You have the following requirements:   - Ensure that each request is processed exactly one time.   - Minimize the idle time of each worker role instance. - Maximize the reliability of request processing.   You need to recommend a queue design for sending requests to the worker role.  What should you recommend?()
    A

     Create a single queue.  Send requests on the single queue.

    B

     Create a queue for each web role.  Send requests on all queues at the same time.

    C

     Create a queue for each workerrole instance.  Send requests on each worker queue in a round robin.

    D

     Create a queue for each combination of web roles and worker role instances.  Send requests to all worker role instances based on the sending web role.


    正确答案: C
    解析: 暂无解析

  • 第13题:

    You are building your own layout mechanism by including dynamic content for the page’s header and footersections. The footer is always static, but the header generates the  tag that requires the page name tobe specified dynamically when the header is imported. Which JSP code snippet performs the import of theheader content?() <title>

    • A、<jsp:include page=’/WEB-INF/jsp/header.jsp’><jsp:param name=’pageName’ value=’Welcome Page’ /> </jsp:include>
    • B、<jsp:import page=’/WEB-INF/jsp/header.jsp’><jsp:param name=’pageName’ value=’Welcome Page’ /> </jsp:import>
    • C、<jsp:include page=’/WEB-INF/jsp/header.jsp’><jsp:attribute name=’pageName’ value=’Welcome Page’ /> . </jsp:include>
    • D、<jsp:import page=’/WEB-INF/jsp/header.jsp’>. <jsp:attribute name=’pageName’ value=’Welcome Page’ /> . </jsp:import>

    正确答案:A

  • 第14题:

    Your manager has informed you that only specific users can have access to the Preferred Members role, and that these users are restricted to the Preferred Members role. The Preferred Members role-mapping rule is currently set as the last rule in your role-mapping rules and is based on username. Currently all users are assigned to the Preferred Members role-mapping rule. Which three changes in the admin GUI will enforce your managers change request?()

    • A、Move the Preferred Members role-mapping rule to the top of the list.
    • B、Remove the Preferred Members role from the role-mapping rule.
    • C、Edit the Preferred Members role-mapping rule so that the username is equal to *.
    • D、Edit the Preferred Members role-mapping rule so that only the select users are assigned to the role-mapping rule.
    • E、Edit the Preferred Members role-mapping rule and select "Stop processing rules when this rule matches".

    正确答案:A,D,E

  • 第15题:

    You develop a Web application that contains two master pages. You need to dynamically set the master page when a user views pages in the application. What should you do? ()

    • A、Set Page.MasterPageFile in the Page's Page_Init event.
    • B、Set Page.MasterPageFile in the Page's OnInit event.
    • C、Set Page.MasterPageFile in the Page's Page_Load event.
    • D、Set Page.MasterPageFile in the Page's Page_PreInit event.

    正确答案:D

  • 第16题:

    You have a Windows Server 2008 server that has the Web Server (IIS) server role installed. The server contains a Web site.  You need to ensure that the cookies sent from the Web site are encrypted on users computers.  Which Web site feature should you configure?()

    • A、Authorization Rules
    • B、Machine Key
    • C、Pages And Controls
    • D、SSL Settings

    正确答案:B

  • 第17题:

    You create a Web site that is for members only. The behavior of the Web site changes according to the role of the user. The Web site uses the ASP.NET Membership control for creation of user accounts. You need to find out whether a user is a member of a particular role. What should you do?()

    • A、Pass the user names and passwords to Membership.ValidateUser.
    • B、Pass the role names to User.IsInRole.
    • C、Pass the role names to Roles.RoleExists.
    • D、Pass the user names to Membership.GetUser.

    正确答案:B

  • 第18题:

    单选题
    You are building your own layout mechanism by including dynamic content for the page’s header and footersections. The footer is always static, but the header generates the  tag that requires the page name tobe specified dynamically when the header is imported. Which JSP code snippet performs the import of theheader content?()
    A

    <jsp:include page=’/WEB-INF/jsp/header.jsp’><jsp:param name=’pageName’ value=’Welcome Page’ /> </jsp:include>

    B

    <jsp:import page=’/WEB-INF/jsp/header.jsp’><jsp:param name=’pageName’ value=’Welcome Page’ /> </jsp:import>

    C

    <jsp:include page=’/WEB-INF/jsp/header.jsp’><jsp:attribute name=’pageName’ value=’Welcome Page’ /> . </jsp:include>

    D

    <jsp:import page=’/WEB-INF/jsp/header.jsp’>. <jsp:attribute name=’pageName’ value=’Welcome Page’ /> . </jsp:import>


    正确答案: A
    解析: 暂无解析

  • 第19题:

    单选题
    You established access to menu modules using roles. You have allowed the sales role to access the menu module, but prevented access to the Update menu item. Which item property would you alter to gray out the menu option for the role?()
    A

    Item Roles. 

    B

    Menu Item Roles. 

    C

    Display without Privilege. 

    D

    Use Security. 

    E

    Command Type.


    正确答案: C
    解析: 暂无解析

  • 第20题:

    单选题
    You create a Web site that is for members only. The behavior of the Web site changes according to the role of the user. The Web site uses the ASP.NET Membership control for creation of user accounts. You need to find out whether a user is a member of a particular role. What should you do? ()
    A

    Pass the user names and passwords to Membership.ValidateUser.

    B

    Pass the role names to User.IsInRole.

    C

    Pass the role names to Roles.RoleExists.

    D

    Pass the user names to Membership.GetUser.


    正确答案: A
    解析: 暂无解析

  • 第21题:

    单选题
    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 JSP code snippet should be used to make this menuvisible to the user?()
    A

    <% if ( request.isUserInRole(SalesManager) ) { %> <%@ include file=’/WEB-INF/html/sales-mgr-menu.html’ %> <% } %>

    B

    <jsp:if test=’request.isUserInRole(SalesManager)’> <%@ include file=’/WEB-INF/html/sales-mgr-menu.html’ %> </jsp:if>

    C

    <% if ( request.isUserInRole(SalesManager) ) { %> . <jsp:include file=’/WEB-INF/html/sales-mgr-menu.html’ /> . <% } %>

    D

    <jsp:if test=’request.isUserInRole(SalesManager)’> <jsp:include file=’/WEB-INF/html/sales-mgr-menu.html’ /> </jsp:if>


    正确答案: C
    解析: 暂无解析

  • 第22题:

    单选题
    You have a server that runs Windows Server 2008. The server has the Web Server (IIS) server role installed and all the Web Server role services installed.  You need to provide a user the ability to administer a Web site. Which feature should you configure?()
    A

    Net Roles

    B

    Net Users

    C

    Authentication

    D

    IIS Manager Permissions


    正确答案: A
    解析: 暂无解析

  • 第23题:

    单选题
    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, the title of each page is unique, so you havedecided to use a variable called pageTitle to parameterize this in the header JSP, like this: 10.${param.pageTitle} Which JSP code snippet should you use in your main view JSPs to insert the header and pass thepageTitle variable?()
    A

    <jsp:insert page=’/WEB-INF/jsp/header.jsp’>. ${pageTitle=’Welcome Page’}. </jsp:insert>

    B

    <jsp:include page=’/WEB-INF/jsp/header.jsp’>. ${pageTitle=’Welcome Page’}. </jsp:include>

    C

    <jsp:include file=’/WEB-INF/jsp/header.jsp’>. ${pageTitle=’Welcome Page’}. </jsp:include>

    D

    <jsp:insert page=’/WEB-INF/jsp/header.jsp’>. <jsp:param name=’pageTitle’ value=’Welcome Page’ /> . </jsp:insert>

    E

    <jsp:include page=’/WEB-INF/jsp/header.jsp’>. <jsp:param name=’pageTitle’ value=’Welcome Page’ /> . </jsp:include>


    正确答案: A
    解析: 暂无解析