单选题In form-based authentication, what must be included in the HTML returned from the URL specified by the  element?()Aa base-64 encoded user name and passwordBa form that POSTs to the j_security_check URLCan applet that requests the user name and password

题目
单选题
In form-based authentication, what must be included in the HTML returned from the URL specified by the  element?()
A

 a base-64 encoded user name and password

B

 a form that POSTs to the j_security_check URL

C

 an applet that requests the user name and password from the user

D

 a hidden field that supplies the login-constraint used by the application


相似考题

3.某留言系统采用ASP+Access开发,其后台管理登录页面如图4-1所示。图4-1【问题1】(9分)以下是该后台管理登录页面login.asp的部分代码,请仔细阅读该段代码,根据图4-1 将(1)~(9)的空缺代码补齐。<!--include file=“conn.asp”--><!--include file=“md5.asp”--><!--include file=“bbb.asp”--><%If request.Form(“submit”)=“管理登录”Thenuser_name = request.Form(“ (1) ”)password = request.Form(“ (2) ”)verifycode = request.Form(“ (3) ”)If user name =“” ThenCallinfoback(“用户名不能为空!”)End If......Set (4) = server. CreateObject(“adodb.recordset”)sql = “select * from administrator (5) user_name = “&user_name&”andpassword = “&md5(password)””rs.Open (6) ,conn,1,1If (7) rs.EOF Thensession(“user_name”)= user_nameresponse.redirect“information.asp”ElseCall infoback(“用户名或密码错误!”)End IfEnd If%><html >......<body><form. method=“post”action=“login.asp”id=“login”><hl>管理员登录</hl><label for=“user_name”>用户名:<input name=“user_name” type=“text” class=“user_name” id=“uname” size=“25”/></label><label for=“password“>密码:<input name=“password”type=“password”id=“pword” size=“25”/></label><label for=“verifycode”>验证码:<input name=“verifycode” type=“text” class=“verifycode” id=“vcode” size=“10”maxlength=“4”/><img src=“code.asp” nclick=“javascript.:this.src=‘code.asp?tm=’+Math.random()”style=“cursos:pointer” alt=“点击更换” title=“点击更换”/></label><p class=“center”><input name=“reset”type=“ (8) ” class=“submit” value=“清除数据”/><input type=“ (9) ” name=“submit” class=“submit”value=“管理登录”/></p></form></body></html>(1)~(9)备选答案如下:A.pword B.where C.uname D.vcode E.resetF.submit G.rs H.sql I. Not

参考答案和解析
正确答案: B
解析: 暂无解析
更多“单选题In form-based authentication, what must be included in the HTML returned from the URL specified by the  element?()A  a base-64 encoded user name and passwordB  a form that POSTs to the j_security_check URLC  an applet that requests the user name and pa”相关问题
  • 第1题:

    创建一个滚动菜单的HTML代码是?()

    • A、<form></form>  
    • B、<select multiple name="NAME" size=?></select> 
    • C、<option>  
    • D、<select name="NAME"></select>

    正确答案:B

  • 第2题:

    Given a web application in which the cookie userName is expected to contain the name of the user. Which EL expression evaluates to that user name?()

    • A、${userName}
    • B、${cookie.userName}
    • C、${cookie.user.name}
    • D、${cookies.userName[0]}

    正确答案:B

  • 第3题:

    In form-based authentication, what must be included in the HTML returned from the URL specified by the  element?()

    • A、 a base-64 encoded user name and password
    • B、 a form that POSTs to the j_security_check URL
    • C、 an applet that requests the user name and password from the user
    • D、 a hidden field that supplies the login-constraint used by the application

    正确答案:B

  • 第4题:

    When using a form-based authentication, which action must be used in the login form?()

    • A、 j_login
    • B、 j_get_user
    • C、 j_login_check
    • D、 j_get_security
    • E、 j_security_check

    正确答案:E

  • 第5题:

    当需要返回当前用户的名字,可以执行如下()SQL语句。

    • A、SELECT user FROM V$DBA
    • B、SELECT user FROM dual
    • C、SELECT name FROM dual
    • D、SELECT name FROM V$DBA

    正确答案:B

  • 第6题:

    Your network contains two Active Directory forests. One forest contains two domains named  contoso.com and na.contoso.com. The other forest contains a domain named nwtraders.com. A forest  trust is configured between the two forests.  You have a user named User1 in the na.contoso.com domain.  User1 reports that he fails to log on to a computer in the nwtraders.com domain by using the user name  NA/User1.  Other users from na.contoso.com report that they can log on to the computers in the nwtraders.com  domain.  You need to ensure that User1 can log on to the computer in the nwtraders.com domain.  What should you do()

    • A、Enable selective authentication over the forest trust.
    • B、Create an external one-way trust from na.contoso.com to nwtraders.com.
    • C、Instruct User1 to log on to the computer by using his user principal name (UPN).
    • D、Instruct User1 to log on to the computer by using the user name nwtraders/User1.

    正确答案:C

  • 第7题:

    单选题
    当需要返回当前用户的名字,可以执行如下()SQL语句。
    A

    SELECT user FROM V$DBA

    B

    SELECT user FROM dual

    C

    SELECT name FROM dual

    D

    SELECT name FROM V$DBA


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

  • 第8题:

    单选题
    Your network contains two Active Directory forests. One forest contains two domains named  contoso.com and na.contoso.com. The other forest contains a domain named nwtraders.com. A  forest trust is configured between the two forests.     You have a user named User1 in the na.contoso.com domain. User1 reports that he fails to log  on to a computer in the nwtraders.com domain by using the user name NA/User1.     Other users from na.contoso.com report that they can log on to the computers in the  nwtraders.com domain.     You need to ensure that User1 can log on to the computer in the nwtraders.com domain.     What should you do()
    A

    Enable selective authentication over the forest trust.

    B

    Create an external one-way trust from na.contoso.com to nwtraders.com.

    C

    Instruct User1 to log on to the computer by using his user principal name (UPN).

    D

    Instruct User1 to log on to the computer by using the user name nwtraders/User1.


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

  • 第9题:

    单选题
    Bob, a technician, needs to backup a user’s local My Documents on a Windows XP workstation.Which of the following is the QUICKEST way to the user’s folder?()
    A

    Browse to the root, Documents and Settings, user’s name, and then My Documents

    B

    Browse to the root, Users, Documents and Settings, user’s name, and then My Documents

    C

    Type %system% into the run box

    D

    Type %temp% into the run box, My Documents, and then user’s name


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

  • 第10题:

    多选题
    下列哪些SQL语句可以查询出User表中name为张三的记录()。
    A

    SELECT * FROM User WHERE name = ’张三’

    B

    SELECT * FROM User WHERE name = ’张三’ LIMIT 0,1

    C

    SELECT * FROM User WHERE name LIKE ’张三’

    D

    SELECT * FROM User WHERE name LIKE ’%张三%’


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

  • 第11题:

    单选题
    Which SQL statement accepts user input for the columns to be displayed, the table name, and WHERE condition? ()
    A

    SELECT &1, &2 FROM &3 WHERE last_name = '&8';

    B

    SELECT &1, '&2' FROM &3 WHERE '& last_name = '&8';

    C

    SELECT &1, &2 FROM &3 WHERE last_name = '&8';

    D

    SELECT &1, '&2' FROM EMP WHERE last_name = '&8';


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

  • 第12题:

    单选题
    When using a form-based authentication, which action must be used in the login form?()
    A

     j_login

    B

     j_get_user

    C

     j_login_check

    D

     j_get_security

    E

     j_security_check


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

  • 第13题:

    A developer wants to make a name attribute available to all servlets associated with a particular user,across multiple requests from that user, from the same browser instance. Which two provide this capability from within a tag handler?()

    • A、pageContext.setAttribute("name", theValue)
    • B、pageContext.setAttribute("name", getSession())
    • C、pageContext.getRequest().setAttribute("name", theValue)
    • D、pageContext.getSession().setAttribute("name", theValue)
    • E、pageContext.setAttribute("name", theValue,PageContext.PAGE_SCOPE)
    • F、pageContext.setAttribute("name", theValue,PageContext.SESSION_SCOPE)

    正确答案:D,F

  • 第14题:

    在struts框架中,以下()语句可以输出Userbean(Bean对象名称为user)中name属性的值。

    • A、<bean:writeid=”user”property=”name”>
    • B、<bean:messageid=”user”property=”name”>
    • C、<bean:writename=”user”property=”name”>
    • D、<bean:messagename=”user”property=”name”>

    正确答案:C

  • 第15题:

    When adding a  element to a web application deployment descriptor, the inclusion of which sub-element requires the definition of an error page()?

    • A、 <realm-name> 
    • B、 <auth-metod> 
    • C、 <auth-constraint> 
    • D、 <form-login-config> 
    • E、 <user-data-constaint>

    正确答案:D

  • 第16题:

    Which SQL statement accepts user input for the columns to be displayed, the table name, and WHERE condition? ()

    • A、SELECT &1, "&2" FROM &3 WHERE last_name = '&8';
    • B、SELECT &1, '&2' FROM &3 WHERE '& last_name = '&8';
    • C、SELECT &1, &2 FROM &3 WHERE last_name = '&8';
    • D、SELECT &1, '&2' FROM EMP WHERE last_name = '&8';

    正确答案:C

  • 第17题:

    下列哪些SQL语句可以查询出User表中name为张三的记录()。

    • A、SELECT * FROM User WHERE name = ’张三’
    • B、SELECT * FROM User WHERE name = ’张三’ LIMIT 0,1
    • C、SELECT * FROM User WHERE name LIKE ’张三’
    • D、SELECT * FROM User WHERE name LIKE ’%张三%’

    正确答案:A,B,C,D

  • 第18题:

    You are a network administrator for Your network consists of a single Active Directory domain named All servers run Windows Server 2003. A help desk user reports that a user object was accidentally deleted and the user can no longer log on to the domain and access resources. You confirm that the user object was included in the most recent backup. You need to enable the user to log on to the domain. You must ensure that the user retains access to resources. What should you do?()

    • A、Install a new domain controller. Install Active Directory from media by using the most recent backup. Manually initiate replication.
    • B、Decrease the garbage collection interval. Perform a nonauthorative restoration of Active Directory by using the most recent backup.
    • C、Perform a nonauthorative restoration of Active Directory by using the most recent backup. Authoritatively restore the user object that was deleted.
    • D、Re-create a user object that has the same user principal name (UPN) as the user object that was deleted. Authoritatively restore this user object.

    正确答案:C

  • 第19题:

    单选题
    You are a network administrator for Your network consists of a single Active Directory domain named All servers run Windows Server 2003. A help desk user reports that a user object was accidentally deleted and the user can no longer log on to the domain and access resources. You confirm that the user object was included in the most recent backup. You need to enable the user to log on to the domain. You must ensure that the user retains access to resources. What should you do?()
    A

    Install a new domain controller. Install Active Directory from media by using the most recent backup. Manually initiate replication.

    B

    Decrease the garbage collection interval. Perform a nonauthorative restoration of Active Directory by using the most recent backup.

    C

    Perform a nonauthorative restoration of Active Directory by using the most recent backup. Authoritatively restore the user object that was deleted.

    D

    Re-create a user object that has the same user principal name (UPN) as the user object that was deleted. Authoritatively restore this user object.


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

  • 第20题:

    单选题
    Given a web application in which the cookie userName is expected to contain the name of the user. Which EL expression evaluates to that user name?()
    A

    ${userName}

    B

    ${cookie.userName}

    C

    ${cookie.user.name}

    D

    ${cookies.userName[0]}


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

  • 第21题:

    单选题
    In form-based authentication, what must be included in the HTML returned from the URL specified by the  element?()
    A

     a base-64 encoded user name and password

    B

     a form that POSTs to the j_security_check URL

    C

     an applet that requests the user name and password from the user

    D

     a hidden field that supplies the login-constraint used by the application


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

  • 第22题:

    单选题
    在struts框架中,以下()语句可以输出Userbean(Bean对象名称为user)中name属性的值。
    A

    <bean:writeid=”user”property=”name”>

    B

    <bean:messageid=”user”property=”name”>

    C

    <bean:writename=”user”property=”name”>

    D

    <bean:messagename=”user”property=”name”>


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

  • 第23题:

    单选题
    When adding a  element to a web application deployment descriptor, the inclusion of which sub-element requires the definition of an error page()?
    A

     <realm-name> 

    B

     <auth-metod> 

    C

     <auth-constraint> 

    D

     <form-login-config> 

    E

     <user-data-constaint>


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

  • 第24题:

    单选题
    A web application uses the HttpSession mechanism to determine if a user is “logged in”. When a user supplies a valid user name and password, an HttpSession is created for that user.  The user has access to the application for only 15 minutes after logging in. The code must determine how long the user has been logged in, and if this time is greater than 15 minutes, must destroy the HttpSession.  Which method in HttpSession is used to accomplish this?()
    A

     getCreationTime

    B

     invalidateAfter

    C

     getLastAccessedTime

    D

     getMaxInactiveInterval


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